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

# Șterge webhookul

> Șterge un webhook și livrările lui

Șterge un webhook, secretele și livrările lui. Această acțiune nu poate fi anulată. Pentru a pune pe pauză un
webhook, trimite `status: "disabled"` prin [Actualizează webhook](https://docs.anivahealth.com/ro/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Necesită scope-ul `webhooks_manage`.

## Cerere

### Parametri de cale

**id** `string` *required*

Identificatorul webhook-ului (UUID).

## Răspuns

La succes, API-ul returnează `204 No Content` cu un corp gol.

## Răspunsuri de eroare

| Status | Descriere |
| - | - |
| `400` | Cerere nevalidă. Vezi mesajul `error`. |
| `401` | Cheie API nevalidă. |
| `403` | Lipsă cheie API sau o cheie API fără scope-ul `webhooks_manage`. |
| `404` | Webhook-ul nu a fost găsit sau aparține altei chei API. |
| `500` | Eroare internă de server. |

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