Skip to content

Instantly share code, notes, and snippets.

@apuppy
Last active April 9, 2022 13:49
Show Gist options
  • Save apuppy/703d9122cfdefa21628be2b6516c1af8 to your computer and use it in GitHub Desktop.
Save apuppy/703d9122cfdefa21628be2b6516c1af8 to your computer and use it in GitHub Desktop.
# purge phpstorm related files
find ~/Library/Preferences/ -iname "*phpstorm*" 2> /dev/null | xargs rm -rf
find ~/Library/Caches/ -iname "*phpstorm*" 2> /dev/null | xargs rm -rf
find ~/Library/Application\ Support/ -iname "*phpstorm*" 2> /dev/null -exec rm -rf {} +
find ~/Library/Logs/ -iname "*phpstorm*" -exec rm -rf {} +
# purge IntelliJIdea related files
find ~/Library/Preferences/ -iname "*intellij*" 2> /dev/null | xargs rm -rf
find ~/Library/Caches/ -iname "*intellij*" 2> /dev/null | grep "IntelliJIdea" | xargs rm -rf
find ~/Library/Application\ Support/ -name "*IntelliJIdea*" 2> /dev/null -exec rm -rf {} +
find ~/Library/Logs/ -iname "*IntelliJIdea*" -exec rm -rf {} +
# purge GoLand related files
find ~/Library/Preferences/ -iname "*goland*" 2> /dev/null | xargs rm -rf
find ~/Library/Caches/ -name "GoLand*" 2> /dev/null | xargs rm -rf
find ~/Library/Application\ Support/ -name "GoLand*" 2> /dev/null -exec rm -rf {} +
find ~/Library/Logs/ -name "GoLand*" -exec rm -rf {} +
# purge PyCharm related files
find ~/Library/Preferences/ -iname "*pycharm*" 2> /dev/null | xargs rm -rf
find ~/Library/Caches/ -name "PyCharm*" 2> /dev/null | xargs rm -rf
find ~/Library/Application\ Support/ -name "PyCharm*" 2> /dev/null -exec rm -rf {} +
find ~/Library/Logs/ -name "PyCharm*" -exec rm -rf {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment