> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phbhealth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Download your data or delete your account

> How a patient downloads their data or asks PHB to delete their account.

## Before you start

You need to be signed in to the patient app.

<Warning>
  Deleting your account signs you out straight away and locks the account. You can't sign in again afterwards.
</Warning>

## Steps

<Steps>
  <Step title="Open Consent">
    Go to **Consent** in the sidebar.
  </Step>

  <Step title="Open download and erase">
    Choose the data-rights view. You can also go straight to `/consent?view=dsar`.
  </Step>

  <Step title="Download first">
    Click **Download my data** to get a copy first.
  </Step>

  <Step title="Delete if you're sure">
    Choose to delete and confirm with **Yes, delete my account**. You are signed out.
  </Step>
</Steps>

## What you can do here

* Download a copy of your data.
* Ask PHB to delete your account.

## Common problems

| Question | Answer |
| - | - |
| Can I undo it? | No. Contact PHB if you deleted by mistake. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.