LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

brew-remove

Remove an installed Homebrew package

TLDR

Remove a formula
$ brew remove [formula]
copy
Remove a cask
$ brew remove --cask [cask]
copy
Remove all files associated with a cask including preferences and caches
$ brew remove --zap [cask]
copy
Force removal even if other formulae depend on it
$ brew remove --force [formula]
copy
Remove and ignore dependencies
$ brew remove --ignore-dependencies [formula]
copy

SYNOPSIS

brew remove [options] formula|cask [...]

DESCRIPTION

brew remove uninstalls a formula or cask. This is an alias for brew uninstall. It removes the installed files but by default preserves configuration files and does not remove dependencies.For casks, use --zap to perform a more thorough removal including application preferences and caches.

PARAMETERS

--cask

Treat all named arguments as casks.
--formula
Treat all named arguments as formulae.
--force, -f
Delete all installed versions of a formula. For casks, uninstall even if not installed, overwrite existing files, and ignore errors.
--zap
Remove all files associated with a cask. May remove files which are shared between applications.
--ignore-dependencies
Do not fail uninstall if dependent formulae exist.

CAVEATS

Removing a formula that other formulae depend on will fail unless --ignore-dependencies is used. The --zap option for casks may remove user data.

SEE ALSO

Copied to clipboard
Kai