# Delete account

A step of the [Cloud application](https://gradus.kazet.blog/tree/cloud-application) tree on Gradus, in the Security area: Secrets, auth, TLS, input.

Page: https://gradus.kazet.blog/tree/cloud-application/step/delete-account

Let users take their data and leave: an export, a deletion with a grace period and a clear list of what is kept.

Usually comes after: [Settings page](https://gradus.kazet.blog/tree/cloud-application/step/settings-page).

## Prompt for your AI assistant

```
Read docs/index.md and the data model. List everything stored about a user across the database, object storage, the email provider, analytics, logs and any identity provider. Add to settings an export as a file the user can download, and a delete account action behind a fresh sign-in, with a plain statement of what happens. Mark the account deleted at once, end its sessions and remove its data after a stated grace period with a scheduled job, including its records at other providers. Write what is kept for legal reasons and why into docs/. Test that nothing holding that user's id remains after the period.
```

Every step of the tree: https://gradus.kazet.blog/tree/cloud-application/llms.txt
