LogoFlux Docs
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

Terminal
flux uninstall [package-name...]

Examples

Uninstall Specific Packages

Terminal
flux uninstall lodash

Removes lodash from your node_modules and updates your package.json.

Uninstall All Packages

Terminal
flux uninstall

Completely 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

OptionDescription
--devRemove from devDependencies only
--no-saveDo not modify package.json
--purgeRemove entire node_modules + lockfile