# Delete a webhook endpoint

> Removes the endpoint and stops deliveries to it. Its delivery history goes with it.

Source: https://docs.spicrawl.com/api-reference/webhooks/webhooks-delete

## DELETE /v1/webhooks/{webhookID}

Operation ID: `webhooksDelete`. API key scope: `webhooks`.

Removes the endpoint and stops deliveries to it. Its delivery history goes with it.

### Example

```bash
curl -X DELETE "https://api.spicrawl.com/v1/webhooks/{webhookID}" \
  -H "Authorization: Bearer $SPICRAWL_API_KEY"
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `webhookID` | path | string | yes | The endpoint `id` returned by `POST /v1/webhooks`. An id of another organization answers 404. |

### Responses

#### 204

Deleted. No body.

Headers: `X-Request-Id`.

#### 401

Missing, invalid, revoked or expired key. Not retryable with the same key.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 403

The key lacks the scope this route requires (`ERR::AUTH::INSUFFICIENT_SCOPE`), or the action is not permitted.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 404

No such resource for this key's organization.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 500

Internal error. Retryable when `retryable` is true.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

Full OpenAPI spec: https://docs.spicrawl.com/openapi.yaml
