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

# Delete Environment

> Deletes a user environment from a Google Tag Manager container

Deletes a user environment from a Google Tag Manager container. Built-in environments (live, latest) cannot be deleted.

|                       |                          |
| --------------------- | ------------------------ |
| **App**               | Google Tag Manager       |
| **Operation ID**      | `gtm_delete_environment` |
| **Type**              | Action                   |
| **Connection**        | `gtm` (required)         |
| **Credits per run**   | 1                        |
| **Agent / MCP tool**  | Yes                      |
| **Requires approval** | Yes (write operation)    |

## Inputs

| Field         | Type           | Required | Default | Description                                                                        |
| ------------- | -------------- | -------- | ------- | ---------------------------------------------------------------------------------- |
| `account`     | DynamicAccount | Yes      | -       | Select the Google Tag Manager account.                                             |
| `container`   | DynamicAccount | Yes      | -       | Select the container.                                                              |
| `environment` | DynamicAccount | Yes      | -       | Select the environment, or provide an environment ID from gtm\_list\_environments. |

## Output

**Type**: `Dict`

Returns \{deleted: true, environmentId} on success (the API returns an empty body).
