<!-- source: https://secondlayer.tools/docs/api-reference#delete-webhook -->

## Delete a webhook

`DELETE /api/webhooks/{id}` (self-hosted instances only)

Removes the webhook. Nothing more is delivered to its URL. Cannot be undone.

### Path parameters

| Name | Type | Description |
| --- | --- | --- |
| `id` | string, required | Webhook id (UUID), as returned by create or list. |

### Responses

- `200` Deleted
- `400` A parameter, filter, cursor or body field was refused; `code` says which
- `401` This bind requires the instance token, and it was missing or wrong
- `404` No webhook with this id
- `415` Missing or non-JSON `Content-Type` (`UNSUPPORTED_MEDIA_TYPE`) — writes must send `Content-Type: application/json`

### Example

```bash
curl -X DELETE http://127.0.0.1:3800/api/webhooks/{id} \
  -H "Authorization: Bearer $INSTANCE_TOKEN"
```

```json
{
  "ok": true
}
```
