# Delete a user account

## Overview

[Video: Delete a user account](https://www.youtube.com/watch?v=qZLZkd9mqIM)

info

Only a superuser can delete a user account. No role gives this access to other users.

This flow describes how to delete a [user](https://docs.ohc.network/concepts/access-governance/user.md) account in Care. Care names this action **Delete Account**.

What Care does depends on whether the user has signed in to Care before. If they have, Care keeps the account but archives it. If they have never signed in, Care removes the account. In both cases, the user can no longer sign in.

You delete the account on the **Security** tab of the profile of the user.

## Pre-requisites

* You are signed in to Care with a superuser account.
* You can open the profile of the user from a users list.

## Permissions

| Permission | Access |
| - | - |
| Superuser account | Lets you see the **Delete Account** section on the **Security** tab of any user, and delete the account. No role or permission gives this to other users. Care refuses to delete a user account for any other user. |

## Steps

### 1. Open the profile of the user

Open the facility where the user is linked to a department. Select **Users** in the facility sidebar. Care opens the **Users Management** page.

To find the user, type the username in **Search by username**.

Select **See Details** on the card of the user. Care opens the profile of the user on the **Profile** tab.

For other ways to find a user, see [Search for a user](https://docs.ohc.network/flows/access-governance/user/search-for-user.md).

![The See Details button on the card of the user, found by username on the Users Management page of the facility](/assets/images/deactivate-user-account-1-676ec89b631ba8cfa6cc55677472c787.webp)

### 2. Open the Security tab

Select the **Security** tab.

On the profile of another user, the **Security** tab shows only the **Delete Account** section.

Note: Care shows the **Security** tab of another user only to a superuser.

![The Security tab on the profile of the user, open on the Delete Account section](/assets/images/deactivate-user-account-2-c9f60863fdaab0c8a9fdeb7b80a4e119.webp)

### 3. Select Delete Account

In the **Delete Account** section, select **Delete Account**.

Care opens the **Verify Account Deletion request** dialog.

![The Delete Account button in the Delete Account section of the Security tab](/assets/images/deactivate-user-account-3-4d6f2c173748f857c7adaa748cecc6c1.webp)

### 4. Confirm the deletion

Type "Delete Account" in the box. Use the same capital letters and spaces. The dialog shows the text to type.

Care keeps the **Delete Account** button of the dialog inactive until the text in the box matches that text.

Select **Delete Account**. To keep the account, select **Cancel**.

Care goes back to the profile of the user. Because the account no longer opens, Care shows **Page Not Found**. The message **User Deleted Successfully** shows only for a moment.

Select **Return to Care** to go on.

Note: On your own profile, the button in the dialog shows **Delete My Account**.

![The Verify Account Deletion request dialog, with Delete Account typed in the box and the Delete Account button active next to Cancel](/assets/images/deactivate-user-account-4-4d990e6526a4712aae05416180324128.webp)

## Expected Outcome

* Care shows **Page Not Found**, because the profile of the user no longer opens.
* If the user has signed in to Care before, Care keeps the account and archives it.
* If the user has never signed in, Care removes the account.
* The user can no longer sign in to Care with this account.
* Care no longer opens the profile of the user. The **Users Management** page of the facility no longer lists the user.
* In the users list of a department, an archived account shows **Archived** in place of **See Details**.
* In the users list of an organization, an archived account has the status **Archived** and no **View** button.

Note: Care has no option to restore an archived account.

## Related

Concepts:

* [User](https://docs.ohc.network/concepts/access-governance/user.md)

Flows:

* [Create a user](https://docs.ohc.network/flows/access-governance/user/create-user.md)
* [Search for a user](https://docs.ohc.network/flows/access-governance/user/search-for-user.md)
