> For the complete documentation index, see [llms.txt](https://ztrust.gitbook.io/ztrust-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ztrust.gitbook.io/ztrust-documentation/user-manual-ztrust-v4.2/4.-admin-manual/4.28-setup-delete-archived-inactive-user-feature.md).

# 4.28 Setup Delete Archived/Inactive User feature

To uphold user account security and optimize resource allocation, inactive or archived user accounts are deactivated. It is implemented to mitigate unauthorized access and potential security vulnerabilities.<br>

To set up the feature for deletion of Archived/Inactive User, follow the below steps

1. Login to ZTrust Admin Console.
2. Go to Realm Settings.

   <figure><img src="/files/XnlLadeuwNKTKXjBpkdH" alt=""><figcaption><p>Fig. 4.27.a: Navigating to Realm Settings</p></figcaption></figure>
3. Click on Localization.

<figure><img src="/files/y2NBiXfERM3tLTuLdyhq" alt=""><figcaption><p>Fig. 4.27.b: Navigating to Localization in Realm Settings</p></figcaption></figure>

4. Go to the Realm overrides tab.

<figure><img src="/files/waIuX4z7qxgvHDXUcEMu" alt=""><figcaption><p>Fig. 4.27.c: Navigating to Realm Settings ⇒ Localization ⇒ Realm Overrides</p></figcaption></figure>

5. Click on Add translation.
6. Provide the Key as Delete-inactive-users and the Value as False.

<figure><img src="/files/SxcI2ENO3ByPcegqJgRI" alt=""><figcaption><p>Fig. 4.27.d: Adding a new translation for enablng/disabling  deletion of inactive users</p></figcaption></figure>

7. Click on Create.
8. Click on Add translation.
9. Provide the Key as deletion-time and give any number as the Value, for example - 8

<figure><img src="/files/o0SQj9voo4LIzYcZjEO6" alt=""><figcaption><p>Fig. 4.27.e: Adding a new translation for deletion time</p></figcaption></figure>

10. Click on Create.
11. Click on Add translation.
12. Enter the Key as deletion-time-unit and the Value as minutes, hours or days. For Example - minutes.

<figure><img src="/files/uyHMqVm4wZQPDPbICPxT" alt=""><figcaption><p>Fig. 4.27.f: Adding a new translation for unit of deletion time</p></figcaption></figure>

13. Click on Create.
14. Click on Edit Action for Delete-inactive-users.

<figure><img src="/files/YTcywuGHw55G3r2dJrMB" alt=""><figcaption><p>Fig. 4.27.g: Editing the 'delete-inactive-users' key</p></figcaption></figure>

15. Change the Value to true from false.

<figure><img src="/files/0SWCRye8Vid3tWZ9FbAz" alt=""><figcaption><p>Fig. 4.27.h: Making the 'delete-inactive-users' true</p></figcaption></figure>

16. Click on the checkmark icon.

The feature to delete the archived/inactive user has been configured now.

<br>
