> ## Documentation Index
> Fetch the complete documentation index at: https://astronomer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# astro workspace team remove

> Remove Teams from a Workspace.

> [!NOTE]
>
> The behavior and format of this command differs depending on what Astronomer product you're using. Use the following tabs to change between product contexts.

Remove a Team from your current Workspace.

**Astro**

## Usage

```sh wrap theme={null}
astro workspace team remove
```

When you remove a team from Astro, the CLI displays a list of Teams in the Workspace and prompts you to select the team to remove.

**APC**

## Usage

```sh wrap theme={null}
astro workspace team remove <team-id> --workspace-id <workspace-id>
```

You can retrieve a Team's ID in one of two ways:

* Access the Team in the UI and copy the last part of the URL in your web browser. For example, if your Team is located at `BASEDOMAIN.astronomer.io/w/cx897fds98csdcsdafasdot8g7/team/cl4iqjamcnmfgigl4852flfgulye`, your Team ID would be `cl4iqjamcnmfgigl4852flfgulye`.
* Run [`astro team list`](https://astronomer.io/docs/cli/v1.47/astro-team#astro-team-list) and copy the value in the `ID` column.

#### Options

| Option | Description | Possible Values |
| - | - | - |
| `<team-id>` | The ID for the Team. | Any valid Team ID. To retrieve a Team ID, run `astro workspace list`. |
| `--workspace-id` (*Required*) | The Workspace for the Team. | Any valid Workspace ID |

## Related commands

* [`astro workspace team add`](https://astronomer.io/docs/cli/v1.47/astro-workspace-team-add)
* [`astro organization team remove`](https://astronomer.io/docs/cli/v1.47/astro-organization-team-delete)
