# Delete a webhook subscription

Source: https://docs.vlayers.ai/reference/webhooks/delete-webhook-subscription

`DELETE /v1/webhooks/subscriptions/{id}` · scope `webhooks:manage`

Removes a webhook subscription permanently. Deliveries already queued for it stop. To pause it instead, update it with `enabled: false`.

Requires an API key with the `webhooks:manage` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | The subscription id. Example: `"0192f5a7-3c4d-7e5f-8a6b-7c8d9e0f1a23"` |

## Request

cURL:

```bash
curl -X DELETE "https://api.vlayers.ai/v1/webhooks/subscriptions/$SUBSCRIPTION_ID" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { createVoiceLayerClient, deleteWebhookSubscription } from '@voicelayer/api';

const client = createVoiceLayerClient({ apiKey: process.env.VOICELAYER_API_KEY!, throwOnError: true });

await deleteWebhookSubscription({
  client,
  path: {
    id: process.env.SUBSCRIPTION_ID!
  }
});
```

Python:

```python
import os
import voicelayer

config = voicelayer.Configuration(access_token=os.environ["VOICELAYER_API_KEY"])
with voicelayer.ApiClient(config) as client:
    api = voicelayer.WebhooksApi(client)
    api.delete_webhook_subscription(
        id=os.environ["SUBSCRIPTION_ID"],
    )
```
