## Webhooks - Delete webhook

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

Deletes a webhook by its **codigo**  (returned by [POST](https://ticketbaiws.eus/en/webhooks-post/) and [GET webhooks](https://ticketbaiws.eus/en/webhooks-get/)). Accepts both the `DELETE` and `DEL` methods.

**Available in the test and production environments.**  Use the same environment the webhook was created in (**api-test**  or **api** ).

**PARAMETERS**

No parameters: the webhook code goes in the 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 (not found):

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

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