Skip to main content

Delete a Webhook

Delete a Webhook resource by ID.

info

You can manage a webhook either through API or our Dashboard. You can check this guide for learn more.


Endpoint

DELETE /webhooks/:id

Deleting Webhooks

If you delete a Webhook resource that is still receiving events, the events after deleting the Webhook resource will not be sent anymore.

Sample code

const client = require('payrex-node')('insert your PayRex Secret API key.');

const webhook = await client.webhooks.delete('<ID of a webhook resource>');

Returns

Returns the deleted resource.