> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/cloud/push/integrations/disable.md).

# Disable, enable or delete an integration

Turn a push integration off and on again, or delete it.

**Where:** Push → Integrations → an integration → **Actions** → **Disable** / **Enable** / **Delete** · `/projects/<project>/push/integrations/<integrationId>/edit`

## Before you start

* The integration is not the default while other integrations exist in the environment — the default cannot be disabled or deleted then. [Set another one as default](/codemash/cloud/push/integrations/set-default.md) first.
* No trigger uses it: an integration a trigger sends through cannot be deleted.

## Steps

1. Open the integration, here `Acme website (Edge)`, and open **Actions**. It offers **Disable** while the integration is enabled (**Enable** while it is off).

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-e11d7b4f9131d3ff5d7c7ef83bbe36cc9749d7ff%2Fdisable-1.png?alt=media" alt="The Actions menu of the Edge Web Push integration with Set as default, Disable, the documentation links and Delete"><figcaption><p>Disable in the Actions menu.</p></figcaption></figure>
2. Press **Disable**. The badge turns **DISABLED**; the settings are kept.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-092a3d7ee36686eb3f268c3b8343b1a31941e22d%2Fdisable-2.png?alt=media" alt="Editing Edge Web Push integration with the badges DISABLED, NOT TESTED, NOT CONFIRMED"><figcaption><p>The integration is disabled.</p></figcaption></figure>
3. To delete an integration, here `Acme website (Firefox)`, choose **Actions → Delete**. The dialog **Delete Confirmation** asks *Are you sure you want to delete?*; press **Delete**.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-9d880f7caf10f60051043ff9b9feb7f2a68c26d6%2Fdisable-3.png?alt=media" alt="Delete Confirmation dialog over the Firefox Web Push integration: Are you sure you want to delete? with Cancel and Delete"><figcaption><p>The delete confirmation.</p></figcaption></figure>

## Result

A disabled integration stays in the list with **Enabled** = **False**. It is not offered on campaigns, trigger actions or template tests. After a delete, Cloud returns to the list without it. A refused action shows a red box with the reason.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-d3da06535da842adf0cdd6e8ae9238c358fee15a%2Fintegrations-list-1.png?alt=media" alt="Push Service Integrations list without the Firefox integration; Acme website (Edge) shows Enabled False"><figcaption><p>The list after the delete.</p></figcaption></figure>

## Change or remove it later

* **Enable** — **Actions → Enable** on a disabled integration.
* A deleted integration cannot be restored; save it again from [Providers](/codemash/cloud/push/integrations/providers.md), with its secrets.

## Do it from code

```ts
const id = 'int_2Qd4ze2hhceIrabMf2fSVc'; // Acme website (Chrome)
await norbix.hub.notifications.disablePushIntegration({ id });
await norbix.hub.notifications.enablePushIntegration({ id });
// delete: await norbix.hub.notifications.deletePushIntegration({ id });
```

```sh
norbix hub notifications push integration disable --id int_2Qd4ze2hhceIrabMf2fSVc --yes
norbix hub notifications push integration enable --id int_2Qd4ze2hhceIrabMf2fSVc
```

The client setup is on the [Push page](/codemash/cloud/push.md#use-it-from-code). API: [Disable Push Integration](/codemash/api-reference/notifications/push/disable-push-integration.md) · [Enable Push Integration](/codemash/api-reference/notifications/push/enable-push-integration.md) · [Delete Push Integration](/codemash/api-reference/notifications/push/delete-push-integration.md)
