import Roark from '@roarkanalytics/sdk';const client = new Roark({ bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted});const webhook = await client.webhook.delete('webhookId');console.log(webhook.data);
{ "data": { "success": true }}
Webhook
Delete webhook
Deletes a webhook and all its event subscriptions.
DELETE
/
v1
/
webhook
/
{webhookId}
JavaScript
import Roark from '@roarkanalytics/sdk';const client = new Roark({ bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted});const webhook = await client.webhook.delete('webhookId');console.log(webhook.data);