# Data deletion

## Closing your account

The service stops at once. You can reopen the account within **7 days**. After that, all of its data, including backups, is deleted within **60 days**.

An owner closes the account in the dashboard, with a recent second factor and the account name typed exactly. From then on, sign-ins and SCIM requests to every environment answer [`account_closed`](/errors/account_closed/), setup portal links, custom portal domains and API keys stop working, and the account is read-only apart from exports and reopening. A paid plan is cancelled at the end of its period, and reopening does not restart it.

If OhAuthCat terminates the account, the same refusals apply and it can't be reopened, but the dashboard stays readable so you can export until the deletion date.

## When the agreement ends

You have **30 days** to export your data. All of it, including backups, is deleted within **90 days** of termination.

## What is kept

Invoices and billing, tax and accounting records are kept for **8 years**, as the law requires.

## Exporting first

[Export configuration](/migrate/export/) creates a portable bundle of your organizations, connections, directories and users. Download it before you close the account. Secrets are not included and must be entered again where you import it.

The [privacy policy](https://ohauthcat.com/legal/privacy) and the [terms](https://ohauthcat.com/legal/terms) set out the full retention rules.
