# remove component

Learn how to remove a component from your project.

This command removes one or more [components](/explanation/component) from your project, [regenerating type definitions](/reference/cli/type-generation) accordingly.

## Usage

This command has the following syntax:

```sh
croct remove component <components>
```

## Example

Remove a component interactively:

```sh
croct remove component
```

Remove a specific component:

```sh
croct remove component my-component
```

Remove multiple components at once:

```sh
croct remove component hero-banner sidebar-cta
```

## Arguments

- `components`: `Array<string>` (optional)

  One or more components to remove, separated by spaces.

  If omitted, the CLI prompts you to select components interactively.

## Options

This command only accepts [global options](../global-options).

## Explore

- [Add component](/reference/cli/commands/add-component): Learn how to add a component to your project.
- [Upgrade](/reference/cli/commands/upgrade): Learn how to upgrade components and slots.
