# deleteEnvironment

```graphql
mutation DeleteEnvironment($input: DeleteEnvironmentInput!) {
  deleteEnvironment(input: $input) {
    ok
  }
}
```

Delete an environment. Requires project.environments.manage.

## Arguments

| Name       | Type                    | Required | Description |
| ---------- | ----------------------- | -------- | ----------- |
| `input`    | DeleteEnvironmentInput! | Yes      |             |
| `input.id` | ID!                     | Yes      |             |

## Variables

```json
{
  "input": {
    "id": "string"
  }
}
```

## Responses

| Status | Description                                             |
| ------ | ------------------------------------------------------- |
| 200    | The DeleteEnvironmentPayload in data.deleteEnvironment. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation DeleteEnvironment($input: DeleteEnvironmentInput!) {\n  deleteEnvironment(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "id": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "deleteEnvironment": {
      "ok": false
    }
  }
}
```
