# Deactivate your account

> What happens when you deactivate your CNPJá account: leaving every organization, the last owner block, your subscription and the data that is kept afterwards.

Deactivating your account permanently ends your access to CNPJá and removes you from every organization. The option is at the end of [Account settings](https://cnpja.com/en-us/docs/account/settings), under **Irreversible actions** > **Deactivate account**, and it is refused while you are the only Owner of any organization.

> **Important:** deactivation cannot be undone. Before confirming, check the organizations you will leave and what happens to each one.

## What happens

| What | What changes |
| --- | --- |
| Your account | It is closed. The dialog warns: **Your account will be deactivated, and your data will be erased after the retention period. This cannot be undone.** |
| Your organizations | You leave all of them and lose access. They keep existing for the other members |
| Your sessions | They end right away, in every browser, and this one goes to the login screen |
| What stays in the browser | This browser's recent records and preferences are not erased. To clear them, see [Data stored in your browser](https://cnpja.com/en-us/docs/privacy/browser-data#clear) |

Deactivating your account doesn't cancel or change any organization's subscription. What happens to the API keys created by someone who leaves is covered in [Keys of members who leave](https://cnpja.com/en-us/docs/organizations/members-and-roles#keys-of-leavers).

If you only want to leave one organization and keep the account, leave just that one, as explained in [Members and roles](https://cnpja.com/en-us/docs/organizations/members-and-roles#remove-a-member-or-leave).

## Last owner

Every organization needs at least one Owner. If you are the only Owner of any organization, deactivation is refused before anything changes, and you stay in every organization, with the message **Nothing was changed: you are the only owner of an organization. Promote another member to owner, or deactivate the organization, before deactivating your account.**, followed by the **Organizations you own** list. The list shows every organization where you hold the Owner role, including those that already have another Owner and don't block the deactivation.

Sort out each organization where you are the only Owner in one of these ways:

- **To keep it going:** give the Owner role to another member, as explained in [Owners](https://cnpja.com/en-us/docs/organizations/members-and-roles#owners).
- **To close it:** deactivate the organization, as explained in [Deactivate an organization](https://cnpja.com/en-us/docs/organizations/deactivate).

Deactivating an organization with a Pro subscription ends the subscription right away, and the organization's dialog warns: **The Pro subscription ends right away, with no refund of the months already paid, and the organization does not go back to Free.** With an overdue invoice, the organization is only deactivated after it is paid ([An overdue invoice blocks deactivation](https://cnpja.com/en-us/docs/organizations/deactivate#blocked)). The rules are in the [Terms of Use](https://cnpja.com/en-us/legal/terms#cancellation).

Then go back to **Account settings** and deactivate the account.

## Deactivate

1. Click your avatar, at the top right, then **Account settings**.
2. At the end of the page, under **Irreversible actions**, click **Deactivate account**.
3. In the **Deactivate your account?** dialog, check the account shown and the list of organizations you will leave.
4. Click **Deactivate permanently**.

If you see **We couldn't deactivate your account. Please try again.**, try again in a moment or [contact us](https://cnpja.com/en-us/docs/support/contact).

## Data that is kept

Deactivation is logical: your data is not erased right away, but kept and erased once the retention period ends. Why that data is kept and for how long is set out in the [Privacy Policy](https://cnpja.com/en-us/legal/privacy#retention).

To exercise other rights over your personal data, such as asking for a copy before deactivating, write to our data protection officer, at dpo@cnpja.com. Your rights and how we handle them are in the [Privacy Policy](https://cnpja.com/en-us/legal/privacy#rights).
