> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.paywithatoa.co.uk/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete webhook event

> Delete webhook event via the Atoa Webhooks API, request parameters, response schema and code samples in cURL, Python, JavaScript, PHP, Go and Java.

<Warning>
  **v1 Legacy API** — Deletes a single event subscription by its `webhookId`. For new integrations, use [Delete Endpoint (v2)](/api-reference/Webhook/v2/deleteEndpoint) which deletes the entire endpoint and all its event subscriptions at once.
</Warning>

Deletes a webhook subscription from your business account.

### Authorization

Bearer `<token>`

<ParamField path="webhookId" type="string" required>
  The unique identifier of the webhook which needs to be deleted
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "message": "Webhook deleted successfully"
  }
  ```

  ```json 401 theme={null}
  {
    "name": "UNAUTHORIZED",
    "message": "Unauthorized",
    "status": 401,
    "errors": "[]"
  }
  ```

  ```json 404 theme={null}
  {
    "name": "NOT_FOUND",
    "message": "Webhook not found",
    "status": 404,
    "errors": "[]"
  }
  ```
</ResponseExample>

**Response**

<ResponseField name="message" type="string">
  Webhook deleted successfully
</ResponseField>
