# Delete a webhook endpoint

> Delete a webhook endpoint. DELETE /v1/webhooks/{id} in the Raylight API.

### DELETE /v1/webhooks/{id}

**Delete a webhook endpoint**

Auth: `Authorization: Bearer rl_live_...` with the `productions` scope.

Parameters:

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | uuid | yes | The endpoint id. |

Responses:

| Status | Meaning |
| --- | --- |
| 204 | Deleted. |
| 400 | Invalid request. |
| 401 | Missing, invalid or revoked key. |
| 403 | The key lacks the `productions` scope (code `api_key_missing_scope`), or its owner has view-only access to the workspace (code `forbidden`). |
| 404 | No such endpoint or workspace for this key (code `not_found`). |
| 429 | Rate limited, or a monthly cap reached. |
| 503 | Webhooks are not switched on for this server (code `disabled`). Every webhook route answers this while they are off. |

Example (curl):

```bash
curl -X DELETE https://api.raylight.app/v1/webhooks/$ID \
  -H "Authorization: Bearer $RAYLIGHT_API_KEY"
```

## More

- Previous: [Update a webhook endpoint](https://www.raylight.app/docs/reference/patch-v1-webhooks-id.md)
- Next: [Roll the signing secret](https://www.raylight.app/docs/reference/post-v1-webhooks-id-roll-secret.md)
- All docs: https://www.raylight.app/llms.txt
- Everything in one file: https://www.raylight.app/llms-full.txt
- OpenAPI: https://api.raylight.app/v1/openapi.json
