Skip to content

Instantly share code, notes, and snippets.

@nathancrank
Last active January 10, 2025 23:20
Show Gist options
  • Save nathancrank/7345c5374f84ff70c43ab89b67c2efa0 to your computer and use it in GitHub Desktop.
Save nathancrank/7345c5374f84ff70c43ab89b67c2efa0 to your computer and use it in GitHub Desktop.
Clear macOS icon cache

Option 1:

Run the above script and reboot

Option 2:

  • Get Info on file with icon that wont update. Get Info on any other file as well.

  • Click on the icon in the top left corner of the Get Info window for the second file and choose Edit > Copy.

  • Close that Get Info window and return to the first Get Info window.

  • Click on the icon in the top left corner and choose Edit > Paste.

  • Click on the icon in the top left corner again and hit the delete key. The correct icon should now show.

sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \;
sudo rm -rf /Library/Caches/com.apple.iconservices.store
killall Dock
killall Finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment