# deleteEnvironmentVariable

```graphql
mutation DeleteEnvironmentVariable($input: DeleteEnvironmentVariableInput!) {
  deleteEnvironmentVariable(input: $input) {
    ok
  }
}
```

Delete an environment variable. Requires project.env\_vars.write.

## Arguments

| Name                  | Type                            | Required | Description |
| --------------------- | ------------------------------- | -------- | ----------- |
| `input`               | DeleteEnvironmentVariableInput! | Yes      |             |
| `input.environmentId` | ID!                             | Yes      |             |
| `input.key`           | String!                         | Yes      |             |

## Variables

```json
{
  "input": {
    "environmentId": "string",
    "key": "string"
  }
}
```

## Responses

| Status | Description                                                             |
| ------ | ----------------------------------------------------------------------- |
| 200    | The DeleteEnvironmentVariablePayload in data.deleteEnvironmentVariable. |

## 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 DeleteEnvironmentVariable($input: DeleteEnvironmentVariableInput!) {\n  deleteEnvironmentVariable(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "environmentId": "string",
      "key": "string"
    }
  }
}'
```

## Example response

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