To delete all color presets in iTerm2, you must manually remove the corresponding JSON files from the ~/Library/Application Support/iTerm2/Color Presets directory. The application interface does not provide a global "Delete All" button, so clearing the list requires navigating to this folder and deleting the files that match your unwanted themes.
Understanding iTerm2 Color Storage
iTerm2 stores its color schemes as individual files rather than a single database entry. This design allows for easy portability and sharing of themes but complicates bulk management. When you install a new theme, either by dragging it into the Preferences window or downloading it from a repository like iTerm2Colors, a new file is created in the specific support directory. Consequently, removing these presets cannot be done through the graphical user interface alone. You must interact directly with the file system where these configurations reside. The primary location for these files is within your user library folder. Because theLibrary folder is hidden by default in macOS, accessing it requires a specific keyboard shortcut or manual path entry. Understanding this structure is crucial because simply closing the Preferences window will not undo any changes made to the files on disk.
Locating the Color Presets Directory
You need to access the hidden Application Support folder to find the installed themes. Open Finder and press Command + Shift + G to open the "Go to Folder" dialog. Paste the following path exactly:~/Library/Application Support/iTerm2/Color Presets
Press Enter to navigate to this directory. You will see a collection of files, typically with extensions like .terminalcolor or sometimes just .json depending on the version and source of the theme. Each file represents one color scheme currently available in the iTerm2 dropdown menu. If you see many files here, they are the exact candidates for deletion.
For users who prefer using the terminal to manage these files, you can also verify the contents by running the ls command in that directory. This provides a text-based list of all installed presets, which can help you identify duplicates or old versions that are no longer needed.
Alternative Access via Terminal
If you are comfortable with the command line, you can open iTerm2 itself (or any terminal) and execute the following commands to view and remove files:cd ~/Library/Application\ Support/iTerm2/Color\ Presets
ls -la
This lists all files in the directory. Be extremely careful when using rm commands here, as deleting the wrong files can remove essential system defaults or leave iTerm2 in a broken state if critical configuration files are removed.
Deleting the Preset Files
Once you have located the directory, you can proceed with the deletion. To remove all custom presets, you can select all the files in Finder and move them to the Trash. However, exercise caution: do not delete files if you are unsure what they contain. It is safer to delete only the ones you recognize as unwanted third-party themes. If you wish to start completely fresh, you can delete all files in this folder. Note that iTerm2 has built-in default colors (like Basic, Solarized Dark, etc.). These are often embedded in the application binary or stored elsewhere, so deleting all files in this folder will not break the application. Instead, it will simply reset your visible list to only the built-in options that appear when no custom theme is selected. After deleting the files, you may need to restart iTerm2 for the changes to take effect immediately in the Preferences window. Sometimes the UI caches the list of available themes, so a full quit and relaunch ensures the dropdown menu reflects the current state of the file system.Verifying the Changes
Open iTerm2 and go to Preferences > Profiles > Text > Colors. Click the dropdown menu next to Color Presets. You should now see a significantly shorter list containing only the default schemes. If any custom themes still appear, check if there are duplicate files in the directory or if the application cache needs clearing. This process is similar to managing other configuration bundles in macOS. For instance, if you encounter issues with window behaviors, such as those discussed in our guide on Fixing iTerm 2: Prevent Non-Hotkey Window from Opening Automatically, understanding the underlying file structure helps troubleshoot broader configuration problems.Preventing Future Clutter
To avoid accumulating too many unused presets, consider organizing your downloads before installing them. Only import themes you intend to use regularly. If you are testing multiple themes, keep them in a separate temporary folder and only move the ones you keep into theColor Presets directory. This keeps your installation clean and makes future maintenance easier.
Additionally, be aware that some third-party tools or scripts might automatically populate this folder. If you notice new files appearing unexpectedly, check if you have any background automation running that syncs theme repositories. Disabling such syncs can prevent the directory from becoming cluttered again.
Frequently Asked Questions
Will deleting these files remove my saved profiles?
No, deleting files from the Color Presets directory only removes the color schemes themselves. Your terminal profiles, key bindings, and window settings are stored in different locations, specifically in~/Library/Preferences/com.googlecode.iterm2.plist. Your profile configurations will remain intact after removing the color files.
How do I restore a deleted preset?
Since the files are deleted from your local machine, you must re-download the theme. Visit the original source, such as GitHub or a theme repository, download the.terminalcolor file, and drag it back into the Color Presets folder. Alternatively, you can drag the file directly into the Colors dropdown menu in iTerm2 Preferences to reinstall it.
Can I delete all presets at once using a script?
Yes, you can use a shell command to remove all files in the directory safely. Runrm ~/Library/Application\ Support/iTerm2/Color\ Presets/* in your terminal. This command deletes all contents of the folder. Ensure you do not include a trailing slash in the wildcard pattern to avoid errors, and always double-check the path before executing removal commands.