Mark components as deleted on the remote
$bit delete <component-pattern>
Copiedcopy
Additional Notes
to remove components from your local workspace only, use "bit remove" command. this command marks the components as deleted, and after snap/tag and export they will be marked as deleted from the remote scope as well.

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
--lane-when on a lane, delete the component from this lane only. avoid merging it to main or other lanesboolean
--update-main-EXPERIMENTAL. delete component/s on the main lane after merging this lane into mainboolean
--range-EXPERIMENTAL. enter a Semver range to delete specific tags (cannot be used for snaps). see https://www.npmjs.com/package/semver#ranges for the range syntaxstring
--silent-sskip confirmationboolean
--hard-NOT-RECOMMENDED. delete a component completely from a remote scope. careful! this is a permanent change that could corrupt dependents.boolean
--force-frelevant for --hard. allow the deletion even if used as a dependency. WARNING: components that depend on this component will corruptboolean