Deletes a webhook.
An empty response will be returned when the webhook was successfully deleted.
Returns an error if the application does not have the permission to manage webhooks.
Returns an error if the webhook could not be found
An unexpected client error.
curl -X DELETE https://api.box.com/2.0/webhooks/3321123 \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
await client.WebhooksManager.DeleteWebhookAsync("11111");
client.webhook(webhook_id='12345').delete()
print('The webhook was successfully deleted!')
client.webhooks.delete('1234')
.then(() => {
// deletion succeeded — no value returned
});
client.webhooks.delete(webhookId: "22222") { result: Result<Void, BoxSDKError>} in
guard case .success = result else {
print("Error deleting webhook")
return
}
print("Webhook successfully deleted")
}