27

After searching for about an hour and only getting install options, I have to ask: How to uninstall iTerm2?

So, somehow, I passed a big load of JSON into it (don't ask) and now it has lost the plot somewhat. So I want to kill it and start over, profile and all.

Greenonline
  • 1,330
  • 8
  • 23
  • 31
MrPickles
  • 810
  • 1
  • 9
  • 27

6 Answers6

34
  • If it's installed by Homebrew then you could use brew cask uninstall iterm2.
  • If it's installed by a manually downloaded DMG file then you could goto the /Applications folder in Finder, find the iTerm Icon, right-click it and then move to trash.
vhs
  • 9,316
  • 3
  • 66
  • 70
Wenzhong
  • 492
  • 7
  • 10
  • 4
    I tried removing the Application to Trash as well as installing the brew cask and then uninstalling it using the command line. Neither of them fully uninstalled iTerm2 [as mentioned here](https://stackoverflow.com/a/58727747/712334). – vhs Nov 06 '19 at 10:21
  • 2
    What if you didn't install through brew? but by downloading iTerm2.app? – Eric Huang Mar 11 '21 at 04:06
  • 2
    It would not remove iterm settings or others. We maybe need more strictly way – cyan-kinesin Feb 11 '22 at 04:43
  • 1
    I also downloaded iterm2.app from the app's main website. No DMG. – majorgear Dec 28 '22 at 21:25
15

Moving iTerm2 from Applications to Trash or performaning a brew uninstall --cask iterm2 may not be enough as it leaves behind Finder Context Menu Items:

enter image description here

There's FAQ entry covering how to remove all settings:

defaults delete com.googlecode.iterm2

However, running the above command does not remove the items from the Finder Context Menu even after a killall Finder.

I opened an issue on the iTerm repo on GitLab:
https://gitlab.com/gnachman/iterm2/issues/8459.

Look there for updates on how to uninstall iTerm2 completely.

MikeSchem
  • 950
  • 2
  • 16
  • 29
vhs
  • 9,316
  • 3
  • 66
  • 70
10

To completely remove in using terminal:

  1. Quit the app.
  2. Open Terminal and execute the following.

sudo rm ~/Library/Preferences/com.googlecode.iterm2.plist

sudo rm -r ~/Library/Application\ Support/iTerm2

sudo rm -r /Applications/iTerm.app 
conor
  • 1,131
  • 1
  • 15
  • 20
  • 2
    Thanks! Deleting iTerm2 from application support removed the options to "Open with iTerm2" when i right-click on a directory in Finder (2nd command in the answer). Don't know what that `com.googlecode.iterm2.plist` file do, but deleted it anyway (1st command in the answer). – jshji Feb 27 '23 at 00:07
2

Use the free drag-and-drop AppCleaner app

Doing so will locate and remove all iTerm files like so:

AppCleaner

Chris Perry
  • 6,666
  • 3
  • 11
  • 21
  • Hi Chris. Does the application you are recommending also remove the Finder Context Menu Items (please see related answer on this page)? Thank you. – vhs Sep 27 '21 at 18:19
  • 1
    I'm a bit hesitant to test this out due to how heavily configured my current iTerm setup is. However if you or someone else would like to try this out I'm sure the answer would be appreciated – Chris Perry Sep 27 '21 at 18:31
0

Search iterm globally to ensure that all executable programs named iterm on your Mac are deleted. Then right-click the context menu and select open with iterm once. At this time, it will report an error. Click OK. Right click again to view the context menu, and you will find that iterm has disappeared from your list.

0

I was stuck on this issue. Whatever I tried I still have an option for iTerm in right-click. In the end, I needed to delete the Iterm application also from the download folder. Then use the free app cleaner to delete all related to the app. https://freemacsoft.net/appcleaner/

Semir Hodzic
  • 509
  • 6
  • 9