Disabling webhooks
You can disable a webhook to unsubscribe from events that occur on GitHub.
In this article
About disabling webhooks
You can disable a webhook that was previously enabled for a repository, organization, GitHub Marketplace account, GitHub Sponsors account, or GitHub App.
To disable a webhook, you can choose to deactivate or delete it. When you deactivate a webhook, the webhook deliveries will stop, and you can choose to reactivate the webhook at a later time. When you delete a webhook, it cannot be restored.
For more information, seeAbout webhooks andCreating webhooks.
Disabling a repository webhook
To disable a repository webhook, you can deactivate or delete it. You must be a repository owner, or have admin access in the repository, to disable webhooks.
You can use the GitHub web interface or the REST API to delete a webhook for a repository. For more information about using the REST API to delete a repository webhook, seeREST API endpoints for repository webhooks.
On GitHub, navigate to the main page of the repository.
Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then clickSettings.
In the left sidebar, click Webhooks.
Under "Webhooks", locate the webhook you'd like to disable.
Disable the webhook by either deactivating or deleting it:
- Todeactivate the webhook:
- ClickEdit.
- DeselectActive.
- ClickUpdate webhook.
- Todelete the webhook, clickDelete. This action cannot be undone.
- Todeactivate the webhook:
Disabling an organization webhook
To disable an organization webhook, you can deactivate or delete it. Only organization owners can disable webhooks in an organization.
You can use the GitHub web interface or the REST API to delete an organization webhook. For more information about using the REST API to delete an organization webhook, seeREST API endpoints for organization webhooks.
- In the upper-right corner of any page on GitHub, click your profile picture.
- ClickYour organizations.
- To the right of the organization, clickSettings.
- In the left sidebar, click Webhooks.
- Under "Webhooks", locate the webhook you'd like to disable.
- Disable the webhook by either deactivating or deleting it:
- Todeactivate the webhook:
- ClickEdit.
- DeselectActive.
- ClickUpdate webhook.
- Todelete the webhook, clickDelete. This action cannot be undone.
- Todeactivate the webhook:
Disabling a GitHub Marketplace webhook
You can deactivate a webhook that was previously enabled for events relating to an app that you published on GitHub Marketplace. You cannot delete the webhook. Only the owner of the app can deactivate the GitHub Marketplace webhook for the app. If the app owner has designated any app managers for a GitHub App, the app managers can also deactivate the GitHub Marketplace webhook.
- Navigate to yourGitHub Marketplace listing page.
- Next to the GitHub Marketplace listing that you want to view webhook deliveries for, clickManage listing.
- In the sidebar, clickWebhook.
- DeselectActive.
- ClickUpdate webhook.
Disabling a GitHub Sponsors webhook
You can disable webhooks that were previously enabled for events relating to GitHub Sponsors. Only the owner of the sponsored account can disable sponsorship webhooks for that account.
- In the upper-right corner of any page, click your profile picture, then clickYour sponsors.
- Next to the account you want to edit a webhook for, clickDashboard.
- In the left sidebar, clickWebhooks.
- Under "Webhooks", locate the webhook you'd like to disable.
- Disable the webhook by either deactivating or deleting it:
- Todeactivate the webhook:
- ClickEdit.
- DeselectActive.
- ClickUpdate webhook.
- Todelete the webhook, clickDelete. This action cannot be undone.
- Todeactivate the webhook:
Disabling webhooks for a GitHub App
Each GitHub App has one webhook. You cannot delete the webhook, but you can deactivate the webhook. The owner of a GitHub App can deactivate the webhook the app. If the app owner has designated any app managers for a GitHub App, the app managers can also deactivate the webhook for the app.
In the upper-right corner of any page on GitHub, click your profile picture.
Navigate to your account settings.
- For an app owned by a personal account, clickSettings.
- For an app owned by an organization:
- ClickYour organizations.
- To the right of the organization, clickSettings.
In the left sidebar, click Developer settings.
In the left sidebar, clickGitHub Apps.
Next to the GitHub App that you want to deactivate the webhook for, clickEdit.
Under "Webhook," deselectActive to disable the webhook.
ClickSave changes.