Remove component(s) from the local workspace
$bit remove <component-pattern>
$bit rm <component-pattern>
Additional Notes
to mark components as deleted on the remote scope, use "bit delete".
Arguments
Argument | Description | Required |
---|---|---|
component-pattern | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/**, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. | ✅ |
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--track | -t | keep tracking component in .bitmap (default = false), helps transform a tagged-component to new | boolean |
--keep-files | - | keep component files (just untrack the component) | boolean |
--force | -f | removes the component from the scope, even if used as a dependency. WARNING: you will need to fix the components that depend on this component | boolean |
--silent | -s | skip confirmation | boolean |