> 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/settings/advanced.md).

# Advanced

Disable the Membership module, and enable it again.

**Where:** Membership → Settings → **Advanced** · `/projects/<project>/membership/settings#advanced`

## Before you start

* Disabling keeps all Membership data (by design). The screen still says the data is deleted — that text is wrong; see the note below.
* You need the `membership:manage` permission.

## Steps

1. Open **Settings → Advanced**. The block **Advanced** has one panel, **Disable membership module**.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-76c39b40b3a56b38fd6a35072497b15e0d196f3c%2Fsettings-advanced-1.png?alt=media" alt="Advanced tab: Disable membership module, You can disable membership module and all related data will be deleted, and the Disable module button"><figcaption><p>The Advanced tab.</p></figcaption></figure>
2. Press **Disable module**. The dialog **Disable this module?** says *Are you sure? The module and all the data that belongs to it will be deleted. This cannot be undone.*

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-79f134ea75e0b72e0a16a006fd1307b38df30bcb%2Fsettings-advanced-2.png?alt=media" alt="Dialog Disable this module? with Cancel and Disable module"><figcaption><p>The confirmation dialog.</p></figcaption></figure>
3. Press **Disable module**.

## Result

Membership is off and Cloud opens the Membership start page, **Norbix Membership**, with **ENABLE**.

{% hint style="warning" %}
Disabling a module never deletes data — that is by design: your data is kept and comes back when you enable the module again. Data is deleted only through the **Compliance** settings (personal data of a person) or by [deleting the project](/codemash/cloud/project/settings/termination.md). The panel and the dialog still say the data *will be deleted*; that text is wrong and is being corrected. To erase one person, use their [delete](/codemash/cloud/membership/users/delete.md) action or the Compliance settings.
{% endhint %}

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-43623cf0412222919890e66bbeb6ccddaae679be%2Fenable-1.png?alt=media" alt="Norbix Membership start page with the three features and the ENABLE and Learn more buttons"><figcaption><p>The start page after disabling.</p></figcaption></figure>

## Change or remove it later

* **Enable** again — press **ENABLE** on the start page; see [Membership](/codemash/cloud/membership.md#enable-the-module).

## Do it from code

```ts
await norbix.hub.membership.disableMembership();
await norbix.hub.membership.enableMembership();
```

```sh
norbix hub membership enable
```

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