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

# Remove

> Remove a registered webhook 

# Remove Webhook URL

This endpoint allows removing the webhook URL associated with a specific event.

* The event parameter must be provided in the path
* Once deleted, the event will no longer send notifications to any registered URL

## Path Parameters

<ParamField path="event" type="string" required>
  The event type for which to remove the webhook URL

  Example: `onboarding`
</ParamField>

## Response

Returns **204 No Content** on successful deletion.

## Request Example

<CodeGroup>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url https://api.sandbox.wepayout.com.br/v2/register/companies/webhooks/onboarding \
    --header 'Authorization: Bearer {token}'
  ```

  ```javascript JavaScript theme={null}
  const event = 'onboarding';

  const response = await fetch(`https://api.sandbox.wepayout.com.br/v2/register/companies/webhooks/${event}`, {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer YOUR_TOKEN'
    }
  });

  if (response.status === 204) {
    console.log('Webhook removed successfully');
  }
  ```

  ```python Python theme={null}
  import requests

  event = 'onboarding'
  url = f'https://api.sandbox.wepayout.com.br/v2/register/companies/webhooks/{event}'
  headers = {
      'Authorization': 'Bearer YOUR_TOKEN'
  }

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

  if response.status_code == 204:
      print('Webhook removed successfully')
  ```
</CodeGroup>

<ResponseExample>
  ```text 204 No Content theme={null}
  No Content
  ```
</ResponseExample>
