> ## Documentation Index
> Fetch the complete documentation index at: https://alhwyn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete webhook endpoint

> Remove a registered Luma webhook endpoint by ID using luma.webhooks.delete(), stopping any further outbound event deliveries to that URL.

<Badge color="purple">SDK</Badge> `luma.webhooks.delete(id: string): Promise<void>`

Deletes a webhook endpoint.

<RequestExample>
  ```typescript Example theme={null}
  await luma.webhooks.delete("whk-abc123");
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  null
  ```
</ResponseExample>

### Parameters

<ParamField path="id" type="string" required>
  Webhook endpoint `api_id` from `webhooks.create()` or `webhooks.list()`.
</ParamField>

### Test it

Delete a test endpoint you no longer need:

```typescript theme={null}
const endpoint = await luma.webhooks.create({
  url: "https://myapp.com/api/luma-webhook-test",
  event_types: ["guest.updated"],
});
await luma.webhooks.delete(endpoint.api_id);
console.log("Deleted");
```
