## Webhooks - Eliminar webhook

`DEL`  https://{entorno}.ticketbaiws.eus/webhooks/{codigo_webhook}/

Elimina un webhook a partir de su **codigo**  (lo devuelven [POST](https://ticketbaiws.eus/es/webhooks-post/) y [GET webhooks](https://ticketbaiws.eus/es/webhooks-get/)). Acepta los métodos `DELETE` y `DEL`.

**Disponible en pruebas y en producción.**  Usa el mismo entorno en el que se creó el webhook (**api-test**  o **api** ).

### Parámetros

Sin parámetros: el código del webhook va en la URL.

**DEL** `https://{entorno}.ticketbaiws.eus/webhooks/{codigo_webhook}/`

```bash
$ curl --request DELETE \
     --url https://api-test.ticketbaiws.eus/webhooks/6904a3501884e/ \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'Token: xxx' \
     --header 'Nif: 00000014Z'
```

Respuesta:

```json
HTTP/1.1 200 OK
{
    "result": "OK",
    "return": [],
    "msg": "Webhook deleted successfully"
}
```

Response (no encontrado):

```json
HTTP/1.1 200 OK
{
    "result": "ERROR",
    "return": null,
    "msg": "WEBHOOK Not Found"
}
```

Fuente: https://ticketbaiws.eus/es/webhooks-delete/
