docs/docs/en/api/cli/license/plugins/clean.md
Remove downloaded commercial plugins for the selected env without changing license activation.
nb license plugins clean [flags]
| Parameter | Type | Description |
|---|---|---|
--env, -e | string | CLI env name; when omitted, the current env is used |
--yes, -y | boolean | When an explicitly passed --env targets a different env than the current env, skip the interactive confirmation prompt |
--dry-run | boolean | Preview which plugins would be removed without deleting anything |
--verbose | boolean | Show detailed per-plugin clean logs |
--json | boolean | Output JSON |
nb license plugins clean
nb license plugins clean --env app1
nb license plugins clean --env app1 --yes
nb license plugins clean --env app1 --dry-run
nb license plugins clean --env app1 --verbose
nb license plugins clean --env app1 --json
If you explicitly pass --env and it differs from the current env, the CLI asks for confirmation first. In non-interactive terminals or AI agent sessions, add --yes yourself or run nb env use <name> first and try again.