remove
Description
Section titled “Description”remove tears down a feature that was added with feature / add:
- drops it from
stackchain.yaml - deletes
lib/features/<name>/and matchingtest/features/<name>_*.dart - re-syncs router + DI managed regions
- strips GoRouter auth redirect when removing
auth - updates the lockfile and runs the quality gate
You cannot remove the last remaining feature — add another first.
dart run stackchain remove <name>dart run stackchain remove --name <name>Options
Section titled “Options”| Option | Description |
|---|---|
--name, -n |
Feature name (alternative to positional) |
--dry-run |
Preview only |
--skip-analyze |
Skip analyze in gate |
Examples
Section titled “Examples”dart run stackchain remove authdart run stackchain remove notifications --dry-runSafety tips
Section titled “Safety tips”- Commit first.
- Prefer
--dry-runto preview deletions. - Hand-written files under the feature folder are deleted with the tree — move keepers out first if needed.