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

# Termination

Disable a project for a while, enable it again, or delete it for good.

**Where:** Project → Settings → **Termination** · `/projects/<project>/settings?tab=Termination`

The **Termination** tab has two cards: **Project status** (disable or enable) and **Delete project**. A disabled project keeps all its data but refuses every action; a deleted project is gone.

## Before you start

* To disable or enable: an account role that may manage the project. To delete: a role that may delete it (for example **Account Administrator**).
* Before deleting, export anything you still need.

## Steps

1. Open **Settings → Termination**. **Current status** shows **Active**.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-6d5d38fc256b2e8fd2b759362482e3163639a5e7%2Ftermination-1.png?alt=media" alt="Termination tab: Project status Active with Disable..., Delete project card with the warning list and Delete Project..."><figcaption><p>The Termination tab of Acme Store.</p></figcaption></figure>
2. Press **Disable...**. The dialog **Disable Project** asks you to confirm; press **Submit**.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-0f47a7a7c290345f0cf7952e9086e9390bdbe19d%2Ftermination-2.png?alt=media" alt="Disable Project dialog with Cancel and Submit"><figcaption><p>Confirm disabling.</p></figcaption></figure>
3. To delete a project instead, press **Delete Project...**. The dialog **Delete project** shows the project name and id; type the **Project ID** (for example `pr_3beb9HINTMoE1wZYsHthB2`) and press **Delete project**.

   | Field      | Required          | What it does                                                                                         | Example                     |
   | ---------- | ----------------- | ---------------------------------------------------------------------------------------------------- | --------------------------- |
   | Project ID | yes (delete only) | Must equal the project id shown above it, or the button stays refused (*Project ID does not match*). | `pr_3beb9HINTMoE1wZYsHthB2` |

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-a1aed962643f3dec43a6ff332d9b6d93a4988237%2Ftermination-4.png?alt=media" alt="Delete project dialog for Old demo with the project id typed and the Delete project button"><figcaption><p>Deleting the project Old demo.</p></figcaption></figure>

## Result

* **Disabled** — **Current status: Disabled**, the button changes to **Enable**, and the project card on [Projects](/codemash/cloud/projects.md) shows **DISABLED**. You can still look around the project, but nothing can be changed or sent and the API refuses calls.

  <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-75be51f895f28bc0596836e5dc82844cba4b6cfe%2Ftermination-3.png?alt=media" alt="Project status Disabled with the Enable button"><figcaption><p>Disabled.</p></figcaption></figure>
* **Deleted** — all project data, modules, integrations and settings are removed and the project disappears from **Projects**.

{% hint style="warning" %}
After **Delete project** Cloud stays on the deleted project's settings page and shows *CM-ERRORS-PROJECTS-002: Project with id … not found*. The project is deleted; open **Projects** from the menu bar.
{% endhint %}

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-68dbbabb9e13708c884726b17e1bab9d6caf14c8%2Ftermination-5.png?alt=media" alt="Settings of the deleted project with the error toast Project with id not found"><figcaption><p>Right after deleting.</p></figcaption></figure>

## Change or remove it later

* **Enable** — press **Enable** on a disabled project; it is **Active** again at once.
* A deleted project cannot be brought back.

## Do it from code

```ts
const projectId = 'pr_7FUKofhEBNMnISkqust2De';
await norbix.hub.account.disableProject({ projectId });
await norbix.hub.account.enableProject({ projectId });
```

```sh
norbix project disable --project pr_7FUKofhEBNMnISkqust2De --yes
```

The client setup is on the [Account page](/codemash/cloud/account.md#use-it-from-code). API: [Disable Project](/codemash/api-reference/account/projects/disable-project.md) · [Enable Project](/codemash/api-reference/account/projects/enable-project.md) · [Delete Project](/codemash/api-reference/account/projects/delete-project.md)
