# deleteDeployment

```graphql
mutation DeleteDeployment($input: DeleteDeploymentInput!) {
  deleteDeployment(input: $input) {
    ok
  }
}
```

Delete a deployment. Requires project.deployments.write; API keys also need delete scope.

## Arguments

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

## Variables

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

## Responses

| Status | Description                                            |
| ------ | ------------------------------------------------------ |
| 200    | The DeleteDeploymentPayload! in data.deleteDeployment. |

## 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 DeleteDeployment($input: DeleteDeploymentInput!) {\n  deleteDeployment(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "id": "string"
    }
  }
}'
```

## Example response

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