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

# Eliminar webhook

> Eliminar un webhook y sus entregas

Elimina un webhook, sus secretos y sus entregas. Esta acción no se puede deshacer. Para pausar un
webhook, envía `status: "disabled"` con [Actualizar webhook](https://docs.anivahealth.com/es/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Requiere el scope `webhooks_manage`.

## Solicitud

### Parámetros de ruta

**id** `string` *required*

Identificador del webhook (UUID).

## Respuesta

Si tiene éxito, la API devuelve `204 No Content` con un cuerpo vacío.

## Respuestas de error

| Estado | Descripción |
| - | - |
| `400` | Solicitud no válida. Consulta el mensaje de `error`. |
| `401` | Clave API no válida. |
| `403` | Falta la clave API o la clave API no tiene el scope `webhooks_manage`. |
| `404` | Webhook no encontrado o pertenece a otra clave API. |
| `500` | Error interno del servidor. |

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