Skip to main content
Uninstalls one or more formulas from your system, removing both the symlinks and the installation metadata.

Usage

Arguments

string[]
One or more formula names to uninstall. Required unless --all is used.Examples: jq, wget, git

Options

boolean
Uninstall all currently installed formulas. When this flag is used, you don’t need to specify individual formula names.Warning: This will remove all packages installed with zerobrew.
path
Environment: ZEROBREW_ROOTOverride the root directory for zerobrew’s content-addressable store.
path
Environment: ZEROBREW_PREFIXOverride the prefix directory where packages are linked.
number
Default: 20Number of concurrent operations to perform.
boolean
Alias: --yesEnvironment: ZEROBREW_AUTO_INITAutomatically initialize zerobrew if not already set up.

Examples

Uninstall a single package

Uninstall multiple packages

Uninstall all packages

If no packages are installed:

Behavior

When you uninstall a formula, zerobrew:
  1. Removes symlinks from the prefix directory (e.g., /usr/local/bin)
  2. Removes installation metadata from the local database
  3. Keeps store entries - the actual files remain in the content-addressable store
To clean up unused store entries, use zb gc after uninstalling packages.

Error Handling

Formula not installed

If you try to uninstall a package that isn’t installed:

Partial failures

When uninstalling multiple packages, zerobrew will attempt to uninstall all of them even if some fail:

Comparison with Homebrew

  • zb install - Install packages
  • zb list - List installed packages
  • zb gc - Clean up unused store entries
  • zb reset - Uninstall everything and reset zerobrew