# deleteWebhook

```graphql
mutation DeleteWebhook($input: DeleteWebhookInput!) {
  deleteWebhook(input: $input) {
    ok
  }
}
```

Delete a webhook that is no longer needed so that its URL refuses future deliveries; returns ok true once the webhook is deleted. Requires project.agents.write; API keys also need delete scope.

## Arguments

| Name                     | Type                | Required | Description                                                                                                      |
| ------------------------ | ------------------- | -------- | ---------------------------------------------------------------------------------------------------------------- |
| `input`                  | DeleteWebhookInput! | Yes      |                                                                                                                  |
| `input.projectReference` | String              |          |                                                                                                                  |
| `input.id`               | ID!                 | Yes      | Webhook definition id. Future deliveries for it are disabled. A missing webhook fails with RESOURCE\_NOT\_FOUND. |

## Variables

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

## Responses

| Status | Description                                      |
| ------ | ------------------------------------------------ |
| 200    | The DeleteWebhookPayload! in data.deleteWebhook. |

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

## Example response

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