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

# Disable or delete an integration

Disable, enable again or delete a membership integration.

**Where:** Membership → Integrations → click an integration → **Actions** · `/projects/<project>/membership/integrations/edit/<integrationId>`

## Before you start

* A saved integration — see [Providers](/codemash/cloud/membership/integrations/providers.md).
* You need the `membership:update` permission on integrations to disable, `membership:delete` to delete.

## Steps

1. In **Membership Integrations**, click the integration, for example `Microsoft work accounts`, and press **Actions**. The menu has **Disable** (or **Enable**), **See Microsoft documentation**, **See SDK documentation**, **See API documentation** and **Delete**.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-821698163aafeb851ce34258f6d1872c7ce60ddf%2Fintegrations-disable-1.png?alt=media" alt="Editing Microsoft integration with the ENABLED badge, the id int_4arjQTFv3tO4HTJ7VZV796 and the Actions menu: Disable, See Microsoft documentation, See SDK documentation, See API documentation, Delete"><figcaption><p>The <strong>Actions</strong> menu.</p></figcaption></figure>
2. Press **Disable**. The badge changes to **DISABLED** and the list shows **Enabled: False**. **Actions → Enable** turns it on again.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-1e6043d9987b32f94392cba19a4980dcaee52d10%2Fintegrations-disable-2.png?alt=media" alt="Editing Microsoft integration with the DISABLED badge"><figcaption><p>The integration is disabled.</p></figcaption></figure>

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-b865c7f9c7de39b42b27e92967c8104ff4507a71%2Fintegrations-disable-3.png?alt=media" alt="Membership Integrations list with Microsoft work accounts Enabled False"><figcaption><p>The list after <strong>Disable</strong>.</p></figcaption></figure>
3. To delete, open the integration (here `Old GitHub app`), press **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-19aa5b6ccc8cf7b274488000e0f672eb7eace6d1%2Fintegrations-disable-4.png?alt=media" alt="Dialog Delete Confirmation: Are you sure you want to delete? with Cancel and Delete"><figcaption><p>The confirmation dialog.</p></figcaption></figure>

## Result

A disabled integration keeps its settings. A deleted one is gone: Cloud shows *Integration deleted* and goes back to the list.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-7669ca1bd8849cd62ab7469a488e9f295cbf6510%2Fintegrations-disable-5.png?alt=media" alt="Membership Integrations list without Old GitHub app"><figcaption><p>The list after <strong>Delete</strong>.</p></figcaption></figure>

## Change or remove it later

* A deleted integration cannot be brought back — connect the provider again: [Providers](/codemash/cloud/membership/integrations/providers.md).

## Do it from code

```ts
await norbix.hub.membership.disableMembershipIntegration({ id });
await norbix.hub.membership.enableMembershipIntegration({ id });
await norbix.hub.membership.deleteMembershipIntegration({ id });
```

```sh
norbix hub membership integration disable int_4arjQTFv3tO4HTJ7VZV796 --yes
```

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