Show examples in:
    Delete a webhook

    Returns

    Returns a webhook resource object.

    Examples

    Example Basic example
    import { buildClient } from '@datocms/cma-client-node';
    async function run() {
    const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
    const webhookId = '312';
    const webhook = await client.webhooks.destroy(webhookId);
    console.log(webhook);
    }
    run();