> ## 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 env airflow-variable delete

<Info>
  This command is only available on Astro.
</Info>

Delete an Airflow variable, identified by its ID or key.

## Usage

```bash wrap theme={null}
astro env airflow-variable delete <id-or-key>
```

## Options

| Option            | Description                                                                                                              | Possible Values              |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------ | ---------------------------- |
| `<id-or-key>`     | The ID or key of the Airflow variable to delete.                                                                         | Any valid variable ID or key |
| `-y`,`--yes`      | Skip the confirmation prompt.                                                                                            | None                         |
| `--workspace-id`  | Set the Workspace scope. Mutually exclusive with `--deployment-id`. Defaults to your current Workspace from CLI context. | Any valid Workspace ID       |
| `--deployment-id` | Set the Deployment scope. Mutually exclusive with `--workspace-id`.                                                      | Any valid Deployment ID      |

## Examples

```bash wrap theme={null}
# Delete a Workspace Airflow variable by key, skipping the confirmation prompt
astro env airflow-variable delete MY_VAR --workspace-id <workspace-id> --yes
```

## Related commands

* [`astro env airflow-variable create`](/docs/cli/v1.43/astro-env-airflow-variable-create)
* [`astro env airflow-variable list`](/docs/cli/v1.43/astro-env-airflow-variable-list)
