title | shortTitle | intro | versions | topics | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Disabling webhooks |
Disable webhooks |
You can disable a webhook to unsubscribe from events that occur on {% data variables.product.prodname_dotcom %}. |
|
|
{% ifversion fpt %}You can disable a webhook that was previously enabled for a repository, organization, {% data variables.product.prodname_marketplace %} account, {% data variables.product.prodname_sponsors %} account, or {% data variables.product.prodname_github_app %}.{% endif %}
{% ifversion ghec %}You can disable a webhook that was previously enabled for a repository, organization, {% data variables.product.prodname_enterprise %}, {% data variables.product.prodname_marketplace %} account, {% data variables.product.prodname_sponsors %} account, or {% data variables.product.prodname_github_app %}.{% endif %}
{% ifversion ghes %}You can disable a webhook that was previously enabled for a repository, organization, {% data variables.product.prodname_enterprise %}, or {% data variables.product.prodname_github_app %}.{% endif %}
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, see AUTOTITLE and AUTOTITLE.
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 {% data variables.product.prodname_dotcom %} 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, see AUTOTITLE.
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.webhooks.sidebar_webhooks %} {% data reusables.webhooks.disable_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 {% data variables.product.prodname_dotcom %} web interface or the REST API to delete an organization webhook. For more information about using the REST API to delete an organization webhook, see AUTOTITLE.
- In the upper-right corner of any page on {% data variables.product.github %}, click your profile photo.
- Click Your organizations.
- To the right of the organization, click Settings. {% data reusables.webhooks.sidebar_webhooks %} {% data reusables.webhooks.disable_webhook %}
{% ifversion ghec or ghes %}
Enterprise owners can disable a global webhook in an {% data variables.product.prodname_enterprise %}.
{% ifversion ghes %}
You can use the {% data variables.product.company_short %} web interface or the REST API to disable a global webhook. For more information about using the REST API to disable a global webhook, see AUTOTITLE.
{% endif %}
{% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.settings-tab %} {% data reusables.enterprise-accounts.hooks-tab %} {% data reusables.webhooks.disable_webhook %}
{% endif %}
{% ifversion fpt or ghec %}
You can deactivate a webhook that was previously enabled for events relating to an app that you published on {% data variables.product.prodname_marketplace %}. You cannot delete the webhook. Only the owner of the app can deactivate the {% data variables.product.prodname_marketplace %} webhook for the app. If an organization has designated any app managers for a {% data variables.product.prodname_github_app %} owned by the organization, the app managers can also deactivate the {% data variables.product.prodname_marketplace %} webhook.
- Navigate to your {% data variables.product.prodname_marketplace %} listing page.
- Next to the {% data variables.product.prodname_marketplace %} listing that you want to view webhook deliveries for, click Manage listing.
- In the sidebar, click Webhook.
- Deselect Active.
- Click Update webhook.
You can disable webhooks that were previously enabled for events relating to {% data variables.product.prodname_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 photo, then click Your sponsors.
- Next to the account you want to edit a webhook for, click Dashboard.
- In the left sidebar, click Webhooks. {% data reusables.webhooks.disable_webhook %}
{% endif %}
Each {% data variables.product.prodname_github_app %} has one webhook. You cannot delete the webhook, but you can deactivate the webhook. The owner of a {% data variables.product.prodname_github_app %} can deactivate the webhook the app. If an organization has designated any app managers for a {% data variables.product.prodname_github_app %} owned by the organization, the app managers can also deactivate the webhook for the app.
{% data reusables.apps.settings-step %} {% data reusables.apps.enterprise-apps-steps %}
- Next to the {% data variables.product.prodname_github_app %} that you want to deactivate the webhook for, click Edit.
- Under "Webhook," deselect Active to disable the webhook.
- Click Save changes.