macOS | 3.5.14
To install iTerm2 on your work computer:
Don’t see iTerm2 or the Fleet Desktop icon? Send a link to this page to your IT team.
Run the following command in your terminal to uninstall iTerm2:
APPDIR="/Applications/" && LOGGED_IN_USER=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ { print $3 }') && trash() { local logged_in_user="$1"; local target_file="$2"; local timestamp="$(date +%Y-%m-%d-%s)"; local rand="$(jot -r 1 0 99999)"; if [[ "$target_file" == ~* ]]; then target_file="/Users/$logged_in_user${target_file:1}"; fi; local trash="/Users/$logged_in_user/.Trash"; local file_name="$(basename "${target_file}")"; if [[ -e "$target_file" ]]; then echo "removing $target_file."; mv -f "$target_file" "$trash/${file_name}_${timestamp}_${rand}"; else echo "$target_file doesn't exist."; fi } && sudo rm -rf "$APPDIR/iTerm.app" && trash $LOGGED_IN_USER '~/Library/Application Scripts/com.googlecode.iterm2.iTermFileProvider' && trash $LOGGED_IN_USER '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.googlecode.iterm2.itermai.sfl*' && trash $LOGGED_IN_USER '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.googlecode.iterm2.sfl*' && trash $LOGGED_IN_USER '~/Library/Application Support/iTerm' && trash $LOGGED_IN_USER '~/Library/Application Support/iTerm2' && trash $LOGGED_IN_USER '~/Library/Caches/com.googlecode.iterm2' && trash $LOGGED_IN_USER '~/Library/Containers/com.googlecode.iterm2.iTermFileProvider' && trash $LOGGED_IN_USER '~/Library/Containers/iTermAI' && trash $LOGGED_IN_USER '~/Library/Cookies/com.googlecode.iterm2.binarycookies' && trash $LOGGED_IN_USER '~/Library/HTTPStorages/com.googlecode.iterm2' && trash $LOGGED_IN_USER '~/Library/HTTPStorages/com.googlecode.iterm2.binarycookies' && trash $LOGGED_IN_USER '~/Library/Preferences/com.googlecode.iterm2.plist' && trash $LOGGED_IN_USER '~/Library/Preferences/com.googlecode.iterm2.private.plist' && trash $LOGGED_IN_USER '~/Library/Saved Application State/com.googlecode.iterm2*.savedState' && trash $LOGGED_IN_USER '~/Library/WebKit/com.googlecode.iterm2'
Run this query in Fleet to find old versions of iTerm2 across all your computers:
SELECT 1 FROM apps WHERE bundle_identifier = 'com.googlecode.iterm2' AND bundle_short_version <= '3.5.14';