bun remove
all
Remove a dependency from `package.json`. Note: `rm` can be used as an alias for `remove`.
More info →Options (1)
-g, --globalbooleanRemove a globally installed package
Example:
bun remove {{[-g|--global]}} {{package_name}}Examples (5)
Remove a dependency
bun remove package_nameRemove multiple dependencies
bun remove package_name1 package_name2 ...Remove a globally installed package
bun remove [-g|--global] package_nameRemove a dependency without updating the `package.json` file
bun remove --no-save package_nameRun the command without actually removing packages (simulate the removal)
bun remove --dry-run package_namemade by @shridhargupta | data from tldr-pages