Usage
remove, u, un
You can use any of these commands interchangeably:
Unlike
install, the uninstall command requires at least one package name. You cannot uninstall all packages at once.What it does
When you runpm-auto uninstall, the tool:
- Reads your configuration file to find the specified preset(s)
- Detects your package manager (npm, pnpm, yarn, or bun)
- Extracts all non-interactive package names from the preset
- Batches and removes all packages in a single command
- Reports uninstallation time and success status
Options
Display all commands that would be executed without actually running them. Use
-D as a shorthand. After displaying the commands, you’ll be prompted to continue or cancel.Examples
Uninstall a single preset
Uninstall multiple presets
Dry run to preview commands
Package manager commands
PM-Auto automatically uses the correct uninstall command based on your package manager:| Package Manager | Uninstall Command |
|---|---|
| npm | npm uninstall |
| pnpm | pnpm remove |
| yarn | yarn remove |
| bun | bun remove |
How it differs from install
- Requires package names - You must specify at least one preset to uninstall
- No interactive commands - Only non-interactive packages are removed
- No
--add-flagsoption - The uninstall command doesn’t support adding custom flags - Single batch command - All packages from a preset are removed in one command
Error handling
If a preset is not found in your config file:If the config file path is not set or the file doesn’t exist, you’ll be prompted to run
pm-auto config <path> to set it up.