# Delete a webhook endpoint

`DELETE https://api.parasend.com/v1/webhook_endpoints/{id}`

Source: https://parasend.com/docs/api/webhooks/delete

Authentication: `Authorization: Bearer <API key>` (a `ps_test_` key in test mode, `ps_live_` in live mode).

Deletes a webhook endpoint. Events queued for it are cancelled.

## Path parameters

- `id` (string, required): The webhook endpoint's ID, starting `whk_`.

## Example: Delete a webhook endpoint

```bash
curl -X DELETE "https://api.parasend.com/v1/webhook_endpoints/whk_01M6R27T4KCSN7M0CHFGVH7JRA" \
  -H "Authorization: Bearer $PARASEND_KEY"
```

```js
const res = await fetch('https://api.parasend.com/v1/webhook_endpoints/whk_01M6R27T4KCSN7M0CHFGVH7JRA', {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.PARASEND_KEY}`,
  },
});
const data = await res.json();
```

## Response 204

Deleted.

Errors: one shape, `{"error": {type, code, message, param, request_id}}`; every code is listed at https://parasend.com/docs/errors.
