---
title: "Remove a subscription"
---

> Documentation Index
> Fetch the complete documentation index at: https://simplcron.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove a subscription

Path: Simplcron API › Webhooks

`DELETE /v1/webhooks/{webhookId}`

Remove an environment-scoped subscription so it receives no new events.

## Authentication

Requires one of the following:

- `bearerAuth`, http bearer, header `Authorization`
- `browserSession`, apiKey, in cookie
- `localBrowserSession`, apiKey, in cookie

## Path parameters

- `webhookId` (`removeWebhook.path.webhookId`; string, required) — ID of a webhook subscription in the current environment.

## Code samples

### cURL

```bash
curl --request DELETE \
  --url '<base-url>/v1/webhooks/<webhookId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = '<base-url>/v1/webhooks/<webhookId>';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/v1/webhooks/<webhookId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 204

Subscription removed

### 401

Authentication is required

#### Example

```json
{
  "error": "string"
}
```

- `error` (`removeWebhook.response.401.error`; string, required)

### 403

The credential lacks permission

#### Example

```json
{
  "error": "string"
}
```

- `error` (`removeWebhook.response.403.error`; string, required)

### 404

Resource not found in this environment

#### Example

```json
{
  "error": "string"
}
```

- `error` (`removeWebhook.response.404.error`; string, required)


Source: https://simplcron.dev/docs/api/remove-webhook/index.md
