brew cleanup [arg...]

Remove stale lock files and outdated downloads for all formulae and casks and remove old versions of installed formulae

Arguments

NameDescription
arg

Options

NameDescription
-d, --debugDisplay any debugging information
-q, --quietMake some output more quiet
-v, --verboseMake some output more verbose
-h, --helpShow help message
--prune, --prune=allRemove all cache files older than specified days
-n, --dry-runShow what would be removed, but do not actually remove anything
-sScrub the cache, including downloads for even the latest versions
--prune-prefixOnly prune the symlinks and directories from the prefix and remove no other files