Skip to content

Instantly share code, notes, and snippets.

@IbrahimTareq
Last active May 21, 2018 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IbrahimTareq/27d7b030318c2dfe3f22890b65621e89 to your computer and use it in GitHub Desktop.
Save IbrahimTareq/27d7b030318c2dfe3f22890b65621e89 to your computer and use it in GitHub Desktop.
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