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

# forest environments:delete

> Delete an environment from a project

# forest environments:delete

Delete an environment, identified by its ID.

## Usage

```bash theme={null}
forest environments:delete <ENVIRONMENT_ID> [options]
```

## Arguments

| Argument | Description |
| - | - |
| `ENVIRONMENT_ID` | ID of the environment to delete (required). [`forest environments`](https://docs.forest.app/reference/cli/environments) lists the IDs |

## Options

| Option | Description |
| - | - |
| `--force` | Delete without asking for confirmation |

Without `--force`, the CLI asks you to type the environment name to confirm the deletion.

> [!WARNING]
>
> Deleting an environment cannot be undone.

## Examples

```bash theme={null}
# Delete an environment, confirming by typing its name
forest environments:delete 325

# Delete without confirmation
forest environments:delete 325 --force
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.