# deleteDomain

```graphql
mutation DeleteDomain($input: DeleteDomainInput!) {
  deleteDomain(input: $input) {
    ok
  }
}
```

Remove a custom domain. Requires project.domains.write.

## Arguments

| Name                  | Type               | Required | Description |
| --------------------- | ------------------ | -------- | ----------- |
| `input`               | DeleteDomainInput! | Yes      |             |
| `input.environmentId` | ID!                | Yes      |             |
| `input.domainId`      | ID!                | Yes      |             |

## Variables

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

## Responses

| Status | Description                                   |
| ------ | --------------------------------------------- |
| 200    | The DeleteDomainPayload in data.deleteDomain. |

## 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 DeleteDomain($input: DeleteDomainInput!) {\n  deleteDomain(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "environmentId": "string",
      "domainId": "string"
    }
  }
}'
```

## Example response

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