# Delete webhook

```http
DELETE /projects/{project_reference}/webhooks/{webhook_id}
```

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.

## Parameters

| Name                | In   | Required | Description                                                                                             |
| ------------------- | ---- | -------- | ------------------------------------------------------------------------------------------------------- |
| `project_reference` | path | Yes      |                                                                                                         |
| `webhook_id`        | path | Yes      | The webhook id (`id` on the webhook, formerly `webhook_definition_id`). A missing webhook is not found. |

## Responses

| Status | Description                                                                                                |
| ------ | ---------------------------------------------------------------------------------------------------------- |
| 200    | Deleted; future deliveries for this webhook are disabled.                                                  |
| 400    | invalid\_input: invalid parameters                                                                         |
| 401    | unauthenticated                                                                                            |
| 403    | forbidden: a project member without project.agents.write. API keys also require delete scope.              |
| 404    | not\_found: project or webhook not found or not visible                                                    |
| 500    | internal                                                                                                   |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly |
