Usage
Arguments
string[]
One or more formula names to uninstall. Required unless
--all is used.Examples: jq, wget, gitOptions
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
Behavior
When you uninstall a formula, zerobrew:- Removes symlinks from the prefix directory (e.g.,
/usr/local/bin) - Removes installation metadata from the local database
- Keeps store entries - the actual files remain in the content-addressable store
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
Related Commands
zb install- Install packageszb list- List installed packageszb gc- Clean up unused store entrieszb reset- Uninstall everything and reset zerobrew