Remove component(s) from the local workspace
$bit remove <component-pattern>
Copiedcopy
$bit rm <component-pattern>
Copiedcopy
Additional Notes
to mark components as deleted on the remote scope, use "bit delete".

Arguments

ArgumentDescriptionRequired
component-patterncomponent 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

OptionOption AliasDescriptionValue Type
--track-tkeep tracking component in .bitmap (default = false), helps transform a tagged-component to newboolean
--keep-files-keep component files (just untrack the component)boolean
--force-fremoves the component from the scope, even if used as a dependency. WARNING: you will need to fix the components that depend on this componentboolean
--silent-sskip confirmationboolean