# Accounts & SSO: Delete your account

Source: https://qurangallery.com/docs/accounts/account-deletion

> How account deletion works — what is removed, what the apps keep, and how to ask for full removal.

Account deletion is the heavy artillery. It signs you out everywhere and removes your sign-in credentials. It does **not** delete what the apps saved for you, such as Quran bookmarks, notes, plans and chat history. See "What stays after you delete" below. The control lives in the **Danger zone** card at the bottom of your settings.

> Deletion is **immediate** in the sense that your sessions, API keys, password, and connected providers are wiped right away. The account record itself is **soft-deleted** — flagged with a deletion date and kept, not erased. See "What 'soft delete' means" below.

## How to delete your account

1. Sign in to **accounts.qurangallery.com**.
2. Open **Settings** and scroll to the very bottom — the **Danger zone** card with a red border.

3. Click **Delete Account**. A confirmation form expands inside the card.

4. Fill in:
   - **Your password** (only if you have one set — Google-only users don't see this field).
   - **The literal word `DELETE`** in the confirmation field — typed exactly, all caps.
5. Click **Delete Permanently**.

You're signed out, your cookies are cleared, and you're redirected back to the sign-in page.

## What gets removed

The moment you click **Delete Permanently**:

- **All your sessions** are revoked. Every device you were signed in on is signed out on the next request.
- **Your password** is deleted from our database.
- **Your Google connections** are detached. Your underlying Google accounts are untouched — only the link from those to your Quran Gallery account is gone.
- **All your API keys** are deleted. Any script or service that was using one starts getting 401 Unauthorized.
- **Your two-factor authentication setup** is deleted (TOTP secret and backup codes).
- **Your email is mangled** on the user record — replaced with a one-time value that no longer matches a real inbox. This lets you re-register the same email later if you want to come back.

## What 'soft delete' means

The user record itself isn't physically removed from our database the instant you click Delete. Instead, it's flagged with a `deleted_at` timestamp. From your perspective, **the account is gone** — you can't sign in and your sessions are dead. The data the apps saved is not removed with it (see below). We keep the record so we can:

- **Prevent re-registration shenanigans** — a banned user creating a new account, deleting it, and trying again.
- **Recover from accidents** — if you didn't mean to delete, ask support and they can reverse the soft-delete.

No job removes the record automatically. It stays in our database, flagged as deleted. To have the record and the data the apps saved removed completely, write to support@qurangallery.com.

## What stays after you delete

Deleting the account is a soft delete. It marks the account deleted, changes the email on the record, and removes sessions, linked sign-ins, API keys and two-factor setup. It does **not** remove what the apps saved on your account:

- **Gone for good:** sessions, API keys, 2FA, password and linked sign-ins (Google).
- **Still saved:** Quran bookmarks, notes and plans. They live in Quran Gallery's own database.
- **Still saved:** Chat history. Conversations are saved on your account, not only on your device.
- **Still saved:** anything else the apps sync to your account, such as Listen playlists, Studio designs and Rafiq boards. See [Sync across devices](https://qurangallery.com/docs/home/sync-across-devices).
- **Stays on the device:** anything saved only in a browser stays there until you clear this site's data.
- **Audit log entries** for your account — kept with the account record.

To remove saved data, **delete it in each app first** — a bookmark or note in the Quran reader, a conversation in Chat — because once the account is deleted you can no longer sign in to do it. Or write to support@qurangallery.com and ask for full removal. [How to delete synced data](https://qurangallery.com/docs/home/sync-across-devices) lists the steps.

## I'm signed in through Google — can I still delete?

Yes. If you don't have a password, the password field doesn't appear in the deletion form, and the **DELETE** typed confirmation is enough on its own. You can also delete by first [setting a password](https://qurangallery.com/docs/accounts/set-password) and then using the password gate, if you prefer the extra friction.

## I want to delete because I forgot my password and can't sign in

You can't delete the account without being signed in. Either:

1. Use [Forgot password](https://qurangallery.com/docs/accounts/password-reset) to recover, then delete; or
2. Contact support, who can either help recover the account or delete it on your behalf.

## I changed my mind — what now?

If you've **just** deleted, email support from the email address that was on the account. Support can reverse an accidental deletion on request.

If you'd rather start over, you can re-register the same email and begin a new account, but it will be empty. To have the old record and its saved data removed completely, write to support@qurangallery.com.

## Why is there a confirmation word?

Because deleting an account can't be undone from your side — only support can reverse it — and "Are you sure? (Y/N)" prompts have led many people to accidentally lose their data over the years. Typing **DELETE** by hand makes deliberate destruction slightly slower than careless destruction. We borrowed the pattern from GitHub.

## Next steps

- [Open account settings](https://accounts.qurangallery.com/settings)
- [API keys (Developers page)](https://qurangallery.com/docs/accounts/api-keys)
- [Banned (suspended) accounts](https://qurangallery.com/docs/accounts/banned-accounts)
- [Your Quran Gallery account](https://qurangallery.com/docs/accounts/overview)
