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

# Delete an environment

> Remove an environment from your catalog.

Removes an environment from your catalog. Sessions already running are unaffected; new sessions and agents can no longer reference it by `id`.

**Returns** `204 No Content` on success.

***

## Path parameters

<ParamField path="id" type="string" required>
  The environment's `id` (e.g. `wide-browser` or `myorg/wide-browser`). Slash-containing identifiers are supported.
</ParamField>

***

## Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE https://agp.eu.hcompany.ai/api/v2/environments/wide-browser \
    -H "Authorization: Bearer $HAI_API_KEY"
  ```

  ```python Python theme={null}
  from hai_agents import Client

  client = Client()

  client.environments.delete_environment("wide-browser")
  ```

  ```typescript TypeScript theme={null}
  import { HaiAgentsClient } from "hai-agents";

  const client = new HaiAgentsClient();

  await client.environments.deleteEnvironment({ id: "wide-browser" });
  ```
</CodeGroup>

***

## Errors

| Status | Cause                                             |
| ------ | ------------------------------------------------- |
| `403`  | The environment is reserved (`h/`) and read-only. |
| `404`  | Environment not found or you don't have access.   |
