> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ankra.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Leave or delete an organisation

> Leave an organisation, or as its owner settle its invoices, remove its clusters and members, and delete it, knowing what happens to its credit.

Leaving takes only you out of an organisation. Deleting takes it away for everyone, and only an owner can do it, once the organisation has no clusters, no other members and no unpaid invoices. This guide does both, and shows how to settle the bill and read the credit first. Leaving takes a minute; deleting takes as long as removing the clusters.

## Before you start

* **To leave**: you are not the organisation's only owner. The only owner is asked to make someone else an owner first, so the organisation is never left without one: see [Roles and access](https://docs.ankra.ai/guides/roles-and-access.md).
* **To delete**: you are an owner. Admins hold `organisation.manage` but not `organisation.delete`, and see **Owners only** instead of the button. The organisation also must have:
  * no clusters left in Ankra,
  * no other active members (pending invitations do not count),
  * no unpaid invoices.
* Neither the CLI nor MCP has a command that leaves or deletes an organisation. Use the portal.

## Leave an organisation

**1. Open Leave or delete**

Go to **Settings → Organisation** (`/next/organisation`) and scroll to **Leave or delete**.

**2. Leave**

On **Leave `<organisation>`**, click **Leave**. The dialog **Leave `<organisation>`?** says you lose access at once and your tokens for the organisation stop working. Click **Leave** to confirm, or **Stay**.

Ankra takes you to **Your account → Organisations** to choose where to go next, or to create an organisation if you have no other.

An admin of the organisation can invite you back.

## Delete an organisation

**1. Pay what is open**

Go to **Settings → Plan and billing**, view **Invoices**. An unpaid invoice is marked **Open** and offers **Pay**, which opens the invoice in Stripe. Pay it there, then come back: a paid invoice offers **View** instead of **Pay**.

Draft invoices do not block the delete. What deleting charges for the month so far depends on how the organisation pays: see [What deleting does](#what-deleting-does).

**2. Remove every cluster**

For each cluster, go to **Infrastructure → Clusters → \<your cluster> → Settings → Terminate or remove**: see [Cluster settings](https://docs.ankra.ai/platform/cluster-settings.md). When no cluster is left, **Infrastructure → Clusters** is empty.

**3. Remove every other member**

Go to **Identity & access → People**. For each person, open their options and choose **Remove from `<organisation>`…**, then **Remove `<name>`**. The dialog also asks what happens to the service tokens they made. When you are the only member left, the list shows only you.

**4. Delete**

Go to **Settings → Organisation**, section **Leave or delete**. While something is left, **Delete `<organisation>`** says what: "Ankra deletes an organisation once its clusters are deleted and everyone else has left. `<organisation>` has 2 clusters and 1 other member." When nothing is left, click **Delete**, type the organisation's name in **Delete `<organisation>`?** and click **Delete `<organisation>`**.

> [!WARNING]
>
> Deleting an organisation cannot be undone.

## Verify

After the delete, Ankra takes you to **Your account → Organisations**, and the organisation is no longer in the list or the organisation switcher.

## What deleting does

| What | What happens |
| - | - |
| Members | Every membership is removed. |
| Tokens | Personal and service tokens stop working for the organisation within a minute, because the memberships they act through are gone. |
| Logo | Removed. |
| Single sign-on | The organisation's single sign-on connection is removed, so nobody signs in through it. |
| AI provider keys | The organisation's AI endpoints and their stored keys are deleted. |
| Image registry logins | The logins Ankra made for the organisation's Ankra image registry are revoked. |
| Images in Ankra's image registry | Not deleted at once, but with the logins revoked you can no longer pull them. Pull what you need before you delete. |
| Plan | The Stripe subscription is cancelled. |
| This month so far, on a plan invoiced monthly | Written as a draft invoice, which a person at Ankra reviews before it is sent. A fixed monthly fee on your plan is charged to the end of the month, not in proportion. |
| This month so far, paying from credit | No invoice. The last complete hours are charged to your credit like the hours before them, and the hour in progress is not charged. |
| Granted credit (welcome credit, codes, credit programmes) | Voided. |
| Credit you bought | Kept for 30 days, and nothing can spend it. During those 30 days [Ankra support](https://docs.ankra.ai/platform/support.md) can refund it on request. After those 30 days the credit is removed. |
| Audit log | The deletion is written to the organisation's audit log, with who deleted it. |
| Your clusters and workloads | Nothing: the organisation cannot be deleted while it has clusters, so they were removed first. |

## Your credit before you delete

To see what credit is left before you delete, open **Settings → Plan and billing**, view **Credit**. **Balance** shows the total and each credit line shows what is left of it; **Statement** lists every change, newest first. From the CLI:

```bash theme={null}
ankra org billing wallet     # the prepaid credit balance
ankra org billing standing   # whether overdue invoices, the wallet or the free tier restrict the organisation
```

To add a card or change it, see [Billing and usage](https://docs.ankra.ai/platform/billing.md#plan-and-billing-in-the-portal).

## What can go wrong

| Message | What to do |
| - | - |
| `Cannot delete organisation with active clusters. Please delete all clusters first.` | Remove the clusters left, step 2. |
| `Cannot delete organisation with other members. Please remove all other members first.` | Remove the members left, step 3. |
| `Cannot delete organisation with unpaid invoices. Settle or void them on the Billing page first.` | Pay the open invoices in **Settings → Plan and billing → Invoices**, step 1, or ask Ankra support about one you dispute. |
| `Only owners can delete organisations` | Ask an owner: the **Delete** row names them. |
| **Leave** is greyed out with **You are its only owner** | Make someone else an owner on **Identity & access → People**, then leave. |

## Next steps

* [Leaving Ankra](https://docs.ankra.ai/concepts/leaving-ankra.md): what stays in your Git repository and on your clusters, and how to take your data with you.
* [Organisation settings](https://docs.ankra.ai/platform/organisation-settings.md): where every setting lives.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.