% Free Disk Space % Tim Hopper % 2018-08-30
Use at your own risk.
Command Line
Docker
docker system prune --all
Conda
conda clean --all
Git
Cleanup unnecessary files and optimize the local repository
git gc --aggressive --prune=now
master
, main
, develop
or dev
)
Deleted merged branches (except for git branch --merged | egrep -v "(^\*|master|main|develop|dev)" | xargs git branch -d
Homebrew
brew cleanup -s
apt-get / aptitude
apt-get clean
# or
apt clean
# or
aptitude clean
Mac/Linux Cache Folder
rm -r ~/.cache
Yarn
yarn cache clean
Utilities
- CleanMyMac
- DaisyDisk
- Monolingual: "program for removing unnecessary language resources from macOS, in order to reclaim several hundred megabytes of disk space"
Use at your own risk.