> 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/code/integrations/disable.md).

# Disable, enable or delete an integration

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

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

## Before you start

* A saved provider integration — see [Connect a provider](/codemash/cloud/code/integrations/providers.md).
* You need `code:update` to disable or enable, `code:delete` to delete.

## Steps

1. Open the integration, here `Bookshop Google`, 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-903384aa485f6007866f680ae4da23ecd653c196%2Fdisable-1.png?alt=media" alt="The Actions menu of the Google Cloud Functions integration with Disable"><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-921d43b1b5ddf1c518d68439aa0f29779082beff%2Fdisable-2.png?alt=media" alt="Editing Google Cloud Functions integration with the badges DISABLED and NOT TESTED"><figcaption><p>The integration is disabled.</p></figcaption></figure>
3. To delete it, 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-2a4699767d2a156ee15aefa7be0410cf50dd863a%2Fdisable-3.png?alt=media" alt="Delete Confirmation dialog over the Google Cloud Functions integration: Are you sure you want to delete? with Delete and Cancel"><figcaption><p>The delete confirmation.</p></figcaption></figure>

## Result

A disabled integration stays in the list with **Enabled** = `False`. After a delete, Cloud returns to the list without it.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-9d2c1dccbfbfdb8b47cd284794915269fab61723%2Fdisable-4.png?alt=media" alt="Code Integrations with Bookshop Lambda and Bookshop Azure; the deleted Bookshop Google is gone"><figcaption><p>The list after the delete.</p></figcaption></figure>

{% hint style="warning" %}
After a delete, the project looks as if the Code module were off: the next time you open a Code page, Cloud shows the **Norbix Code** enable page, and pressing **ENABLE** there does not help. Your integrations and marketplace connections are still there. To get the Code pages back, turn the module off and on again from code (below) — `disable` first, then `enable`.
{% endhint %}

## Change or remove it later

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

## Do it from code

The SDK sends the integration id only in the address, but the gateway also reads it from the body for disable and enable; pass it a second time as `Id` until this is fixed.

```ts
await norbix.hub.code.disableCodeIntegration({ id, Id: id } as any);
await norbix.hub.code.enableCodeIntegration({ id, Id: id } as any);
await norbix.hub.code.deleteCodeIntegration({ id });
// after a delete: get the Code pages back
await norbix.hub.code.disableCode();
await norbix.hub.code.enableCode();
```

```sh
norbix hub code integration delete int_2et8nCrcuXutE3qI2Fi3J6 --yes
```

Disable and enable from the CLI: `norbix raw -X PUT /v3/code/integrations/<id>/disable -b '{"id":"<id>"}'` (`…/enable` to undo). After a delete: `norbix hub code disable --yes`, then `norbix hub code enable`. The client setup is on the [Code page](/codemash/cloud/code.md#use-it-from-code). API: [Disable Code Integration](/codemash/api-reference/code/integrations/disable-code-integration.md) · [Enable Code Integration](/codemash/api-reference/code/integrations/enable-code-integration.md) · [Delete Code Integration](/codemash/api-reference/code/integrations/delete-code-integration.md)
