> ## 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.

# Odstrániť webhook

> Odstrániť webhook a jeho doručenia

Odstráni webhook, jeho tajné kľúče a doručenia. Nedá sa to vrátiť späť. Ak chceš
webhook pozastaviť, pošli `status: "disabled"` cez [Aktualizovať webhook](https://docs.anivahealth.com/sk/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Vyžaduje scope `webhooks_manage`.

## Požiadavka

### Parametre cesty

**id** `string` *required*

Identifikátor webhooku (UUID).

## Odpoveď

Pri úspechu API vráti `204 No Content` s prázdnym telom.

## Chybové odpovede

| Stav | Popis |
| - | - |
| `400` | Neplatná požiadavka. Pozri správu `error`. |
| `401` | Chýbajúci alebo neplatný API kľúč. |
| `403` | Tvoj API kľúč nemá rozsah `webhooks_manage`. |
| `404` | Webhook sa nenašiel alebo patrí inému API kľúču. |
| `500` | Interná chyba servera. |

```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.