Skip to main content

Basically what I need is, I have a slack app created, the workflow of this app is, that I will be able to install the app in a particular workspace under any channel in it. When we install the app, we store slack incoming web details in our database, So, now we are also planning to provide app uninstall capability, Basically, when uninstall trigger happens, we need to remove the webhook database entry and we need to remove incoming webhook details from the slack app. I am thinking if there is an API that can delete the webhook or invalidate it?

 

Can someone please really help me with this? I have been spending. out of time to find out myself, But I could not find anything.

 

Hoping for some positive answer.

5 answers
  1. May 27, 2022, 12:39 AM

    Hi there Praveen!

     

    You can call the `auth.revoke` method in order invalidate the bot or user token when you have your users uninstall your app. Revoking a token will revoke any webhooks associated with that token as well. You can try it yourself using the tester section on the auth.revoke method page.

0/9000