> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anivahealth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhook löschen

> Einen Webhook und seine Zustellungen löschen

Lösche einen Webhook, seine Secrets und seine Zustellungen. Das kann nicht rückgängig gemacht werden. Um einen
Webhook zu pausieren, sende `status: "disabled"` über [Webhook aktualisieren](https://docs.anivahealth.com/de/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Erfordert den Scope `webhooks_manage`.

## Anfrage

### Pfadparameter

**id** `string` *required*

Webhook-Kennung (UUID).

## Antwort

Bei Erfolg gibt die API `204 No Content` mit einem leeren Body zurück.

## Fehlerantworten

| Status | Beschreibung |
| - | - |
| `400` | Ungültige Anfrage. Siehe die `error`-Meldung. |
| `401` | Ungültiger API-Schlüssel. |
| `403` | Kein API-Schlüssel oder ein API-Schlüssel ohne den Scope `webhooks_manage`. |
| `404` | Webhook nicht gefunden oder er gehört zu einem anderen API-Schlüssel. |
| `500` | Interner Serverfehler. |

```bash cURL theme={null}
curl --request DELETE \
  --url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d \
  --header 'x-api-key: YOUR_API_KEY'
```

```json 404 theme={null}
{
  "error": "Webhook not found"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.