# deleteServer

```graphql
mutation DeleteServer($input: DeleteServerInput!) {
  deleteServer(input: $input) {
    ok
  }
}
```

Start deleting a server. Requires project.runtime.manage; API keys also need delete scope.

## Arguments

| Name                     | Type               | Required | Description |
| ------------------------ | ------------------ | -------- | ----------- |
| `input`                  | DeleteServerInput! | Yes      |             |
| `input.id`               | ID!                | Yes      |             |
| `input.projectReference` | String             |          |             |

## Variables

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

## Responses

| Status | Description                                    |
| ------ | ---------------------------------------------- |
| 200    | The DeleteServerPayload! in data.deleteServer. |

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

## Example response

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