TL;DR: I’d like to delete a webhook that’s contacting my server without having permissions on the webhook’s repository to delete it. Is there a way?
I work on a platform where users can develop using Github repositories and we run builds with their code. There’s an OAuth app that adds a webhook when they sign up and when they delete their account, we remove the webhook.
We’d like to start garbage collecting unused accounts and remove the associated webhooks. As the user won’t be logged in, we can’t make the API request in his name.
I looked around in the API’s documentation but wasn’t able to find a way. Did I miss something?
If I haven’t, maybe you could add a response that the remote server could give to a webhook in order to have it deleted? This way it could avoid getting spammed by unwanted webhooks, and your servers don’t have to needlessly send them.
Thank you for your time,