Skip to content

Instantly share code, notes, and snippets.

@barseghyanartur
Last active November 24, 2025 15:20
Show Gist options
  • Select an option

  • Save barseghyanartur/6e330356fab20f43781f71609d487097 to your computer and use it in GitHub Desktop.

Select an option

Save barseghyanartur/6e330356fab20f43781f71609d487097 to your computer and use it in GitHub Desktop.
Mac clean

Paths to clean

Caches

JetBrains

  1. /Users/me/Library/Caches/JetBrains/ and clean up all older versions of JetBrains products (remove older directories).

uv

https://docs.astral.sh/uv/concepts/cache/#clearing-the-cache

  1. uv cache prune - removes all unused cache entries.
  2. uv cache clean - removes all cache entries from the cache directory, clearing it out entirely.

pip

https://pip.pypa.io/en/stable/cli/pip_cache/

  1. pip3 cache purge - removes all cache entries from the cache directory, clearing it out entirely.

Cypress

https://docs.cypress.io/app/references/troubleshooting#Clear-Cypress-cache

  1. npx cypress cache prune - removes all unused cache entries.
  2. npx cypress cache clear - removes all cache entries from the cache directory, clearing it out entirely.

Yarn

https://yarnpkg.com/cli/cache/clean

  1. yarn cache clean - removes all cache entries from the cache directory, clearing it out entirely.

Brew

  1. brew cleanup - removes outdated downloads from the cache and old versions of installed formulae. By default, it removes files older than 120 days.
  2. brew cleanup --prune=all - removes all cache entries from the cache directory, clearing it out entirely.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment