Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code snippet on how to delete a webhook using the MessageMedia Webhooks Node.js SDK.
function deleteWebhook(){
var controller = setup();
// The id of the webhook that you would like to delete
var webhookId = "WEBHOOK_ID";
// Call the function that deletes the webhook
controller.deleteWebhook(webhookId, function(error, response, context) {
console.log(response);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment