# Delete an endpoint

Source: https://checkslip.com/en/docs/delete-endpoint

DELETE `https://api.checkslip.com/api/webhooks/endpoints/{endpoint_id}`

API key

Stops sending to this endpoint at once; deliveries still waiting are cancelled (CANCELLED). A deleted endpoint cannot be restored and its deliveries can no longer be resent, though each delivery's history stays visible until it is 30 days old, counted from when it was sent. To stop sending instead, set enabled to false (while it is off, new messages are not stored). Needs an API key with webhook:manage.

## Parameters

| Field | In | Type | Required |
| --- | --- | --- | --- |
| `endpoint_id` | path | `string` | yes |
| `traceparent` | header | `string` | no |

## Responses

### 204

No body

### Possible errors

401 403 404

An error as Problem Details. All codes are listed at [Error codes](https://checkslip.com/en/docs/errors)

**cURL**

```bash
curl -X DELETE https://api.checkslip.com/api/webhooks/endpoints/string \
  -H "Authorization: Bearer $CHECKSLIP_API_KEY"
```

**Node.js**

```javascript
const res = await fetch("https://api.checkslip.com/api/webhooks/endpoints/string", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.CHECKSLIP_API_KEY}`,
  },
});
```

**Python**

```python
import os

import requests

res = requests.delete(
    "https://api.checkslip.com/api/webhooks/endpoints/string",
    headers={
        "Authorization": f"Bearer {os.environ['CHECKSLIP_API_KEY']}",
    },
)
res.raise_for_status()
```
