# Leave, transfer or delete (/docs/settings/danger-zone)

The **Danger zone** is the last panel of the **Security** page. It holds the actions that can't be undone: leaving a workspace, transferring ownership, deleting the workspace and deleting your account. Each one says what it removes and asks you to confirm first.

- **Who can use it:** Everyone can delete their own account. Admins, members and viewers can leave the workspace they're in; the owner can't leave until they transfer ownership or delete it. Only the owner can transfer ownership or delete the workspace: everyone else sees **Transfer ownership or delete the workspace** with "Only the owner of … can do these" and their role.
- **Before you start:** The Danger zone acts on the workspace you're in. To act on another workspace, switch to it first from the workspace menu at the top of the sidebar.

## Open the Danger zone [#open-the-danger-zone]

Go to **Settings** → **Security** and scroll to the bottom, or press <kbd>⌘</kbd> <kbd>K</kbd> (<kbd>Ctrl</kbd> <kbd>K</kbd> on Windows and Linux) and search for "danger zone". What you see depends on your role in the workspace.

<Tabs items={['Owner', 'Admin, member or viewer']}>
<Tab value="Owner">

The owner sees **Leave** turned off with the reason, then **Transfer ownership**, **Delete** the workspace and **Delete your account**.

![The owner's Danger zone: Leave Northwind Labs turned off, Transfer ownership with a Choose the new owner list, Delete Northwind Labs and Delete your account](/screenshots/danger-zone/01-owner.webp)

</Tab>
<Tab value="Admin, member or viewer">

Everyone else can leave the workspace and delete their account. Transferring and deleting the workspace are for the owner only.

![An admin's Danger zone in Harbor Supply: Leave workspace, the note that only the owner can transfer or delete it, and Delete account](/screenshots/danger-zone/02-admin.webp)

</Tab>
</Tabs>

## Leave a workspace [#leave-a-workspace]

<Steps>
<Step>

### Click Leave workspace [#click-leave-workspace]

In **Leave** followed by the workspace name, click **Leave workspace**. If you own the workspace the button is off: [transfer ownership](#transfer-ownership) or [delete the workspace](#delete-the-workspace) instead.

</Step>
<Step>

### Confirm [#confirm]

The dialog asks **Leave** the workspace. Click **Leave workspace**, or **Stay** to keep your access.

You lose access right away. Your replies and notes stay in the workspace. To come back, an owner or admin has to [invite you again](/docs/settings/members).

![The Leave Harbor Supply? dialog with Stay and Leave workspace](/screenshots/danger-zone/03-leave-confirm.webp)

</Step>
<Step>

### Carry on in your other workspace [#carry-on-in-your-other-workspace]

If you belong to another workspace, Mokanata opens its Command center and says **You're in** that workspace **now**. If that was your only workspace, Mokanata takes you to the first step of setup, where you can create a workspace of your own or accept an invite.

</Step>
</Steps>

## Transfer ownership [#transfer-ownership]

Only the owner can do this. The new owner gets full control, including billing and deleting the workspace, and you become an admin.

<Steps>
<Step>

### Choose the new owner [#choose-the-new-owner]

In **Transfer ownership**, open **Choose the new owner** and pick a member. Each name shows their current role. Then click **Transfer ownership**.

If you click **Transfer ownership** without choosing anyone, Mokanata asks you to **Choose who becomes the owner.** If you're the only member, the panel says ownership can only go to a current member, with a link to **Invite someone**.

![The Choose the new owner list: Priya Raman · Admin, Jonah Weiss · Member, Lena Ortiz · Member and Tomás Herrera · Viewer](/screenshots/danger-zone/04-choose-owner.webp)

</Step>
<Step>

### Confirm [#confirm-1]

The dialog asks **Make** the person **the owner of** the workspace. Click **Transfer ownership** to hand it over, or **Cancel**.

You see that the person now owns the workspace. You're an admin from now on, and only the new owner can give ownership back.

![The Make Priya Raman the owner of Northwind Labs? dialog with Cancel and Transfer ownership](/screenshots/danger-zone/05-transfer-confirm.webp)

</Step>
</Steps>

## Delete the workspace [#delete-the-workspace]

Only the owner can do this. Deleting removes the workspace for everyone in it: every conversation, contact, agent and channel connection.

<Steps>
<Step>

### Click Delete workspace [#click-delete-workspace]

In **Delete** followed by the workspace name, click **Delete workspace**. The dialog says how many members lose access.

</Step>
<Step>

### Type the workspace name [#type-the-workspace-name]

Type the workspace's name exactly as shown in **Type … to confirm**. The **Delete workspace** button stays off until the name matches; the hint under the field changes to **That matches. The button is ready.** Then type the current code from your authenticator app (see [Confirm destructive actions](/docs/getting-started/confirm-destructive-actions)).

![The Delete Northwind Labs? dialog with Northwind typed, the hint The button turns on when this matches exactly, and the Delete workspace button still off](/screenshots/danger-zone/06-delete-workspace.webp)

</Step>
<Step>

### Delete [#delete]

Click **Delete workspace**. If you belong to another workspace, Mokanata opens it; otherwise it takes you to setup to create a new one or join one from an invite.

![The same dialog with Northwind Labs typed, That matches. The button is ready, and the red Delete workspace button turned on](/screenshots/danger-zone/07-delete-workspace-ready.webp)

</Step>
</Steps>

<Callout type="error" title="This can't be undone">
A deleted workspace can't be restored. Everyone in it loses access at once, and they're moved to another workspace of theirs if they have one. If you only want to step back, [transfer ownership](#transfer-ownership) instead.
</Callout>

## Delete your account [#delete-your-account]

Deleting your account deletes your login and removes you from every workspace. Messages you sent stay in each workspace's history. Workspaces you own with no other members are deleted too.

<Steps>
<Step>

### Hand over your workspaces first [#hand-over-your-workspaces-first]

If you own a workspace that has other members, [transfer ownership](#transfer-ownership) or [delete it](#delete-the-workspace) first. Otherwise, once you type your email and click **Delete account**, Mokanata stops with **Hand over your workspace first**, with links to **Transfer ownership** and **Delete the workspace**.

![The Delete your account? dialog after the email is typed and Delete account clicked, showing Hand over your workspace first with Transfer ownership and Delete the workspace links](/screenshots/danger-zone/08-delete-account-blocked.webp)

</Step>
<Step>

### Type your email [#type-your-email]

In **Delete your account**, click **Delete account**. Type your login email in **Type your email, … to confirm** (capital letters don't matter). The **Delete account** button turns on when it matches. Then type the current code from your authenticator app (see [Confirm destructive actions](/docs/getting-started/confirm-destructive-actions)).

</Step>
<Step>

### Delete [#delete-1]

Click **Delete account**. You're logged out on every device and the login page says **Your account was deleted**. You can create a new account with the same email at any time.

![The login page with the notice Your account was deleted: Thanks for trying Mokanata. You can create a new account any time.](/screenshots/danger-zone/09-account-deleted.webp)

</Step>
</Steps>

## Troubleshooting [#troubleshooting]

<Accordions type="single">
<Accordion title="Leave workspace is greyed out">
You own the workspace, and an owner can't leave it. Transfer ownership to another member first, then leave, or delete the workspace.
</Accordion>
<Accordion title="I can't see Transfer ownership or Delete workspace">
Only the workspace owner sees them. Ask the owner, whose name is on the Members tab of [Members & roles](/docs/settings/members), to do it or to transfer ownership to you.
</Accordion>
<Accordion title="The Delete button doesn't turn on">
The text has to match exactly. For a workspace, type its name with the same capitals and spaces as shown in the dialog. For your account, type your full login email.
</Accordion>
<Accordion title="The workspace wasn't deleted, or Your account wasn't deleted">
Something went wrong and nothing was removed. The message in the dialog says why. Check your connection and try again.
</Accordion>
</Accordions>

## Next steps [#next-steps]

<Cards>
<Card title="Members and invites" href="/docs/settings/members" description="Invite people before you hand over a workspace." />
<Card title="Workspaces and roles" href="/docs/getting-started/workspaces-and-roles" description="Switch workspaces and see what each role can do." />
<Card title="Security" href="/docs/settings/security" description="Passkeys, your authenticator app and devices." />
</Cards>
