Commands
flux uninstall
Remove one or more dependencies from your project using Flux.
Overview
The flux uninstall command removes specified dependencies from your project and updates your package.json and flux.lock files accordingly.
You can also use it without arguments to remove all installed packages.
Usage
flux uninstall [package-name...]Examples
Uninstall Specific Packages
flux uninstall lodashRemoves lodash from your node_modules and updates your package.json.
Uninstall All Packages
flux uninstallCompletely removes all packages listed in package.json and clears the node_modules folder.
How It Works
Removes from node_modules
The specified package(s) are deleted from your local installation.
Updates package.json
The packages are removed from the relevant section (dependencies/devDependencies).
Updates flux.lock
Flux ensures the lockfile reflects the changes for a consistent future install.
Options
| Option | Description |
|---|---|
--dev | Remove from devDependencies only |
--no-save | Do not modify package.json |
--purge | Remove entire node_modules + lockfile |
Related Commands
flux install– Add dependenciesflux update– Upgrade existing dependenciesflux reinstall– Perform a clean reinstall