> ## 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

<Info>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.</Info>

Remove a Team from your current Workspace.

<Tabs>
  <Tab title="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.
  </Tab>

  <Tab title="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`](/docs/cli/v1.40/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                                                |
  </Tab>
</Tabs>

## Related commands

* [`astro workspace team add`](/docs/cli/v1.40/astro-workspace-team-add)
* [`astro organization team remove`](/docs/cli/v1.40/astro-organization-team-delete)
