# 4.27 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.\\

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="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2Fi5xl3oaO4w2zECH6exmm%2Fimage.png?alt=media&#x26;token=35fd4ca3-b4ee-4c13-a384-ac6e404ee42c" alt=""><figcaption><p>Fig. 4.27.a: Navigating to Realm Settings</p></figcaption></figure>
3. Click on Localization.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FceEgxP5w6uRhizRGbXA4%2F28.png?alt=media&#x26;token=7658f4b3-7acb-447c-83eb-c3eed375be43" 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="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FiKJ4SWDMwvwcLSO6UFuK%2F29.png?alt=media&#x26;token=b1c28f1e-3ef7-473d-b927-a854ae467883" 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="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FvJotZCHmtbChlAy4v6Fd%2F30.png?alt=media&#x26;token=91b03f51-873b-4bf2-ba44-d9da6aabeacb" 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="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FYiTZIQNAIRGk2Go6MQup%2F31.png?alt=media&#x26;token=d4dd3bfe-4710-42cb-a30a-a58ab6012f40" 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="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FA67Qyuwe8r6jaqjwQkAn%2F32.png?alt=media&#x26;token=d2970f65-ec7c-475c-bd25-d913d1053d8c" 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="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FkEjVcRiBNXvfuv6NrtGB%2F34.png?alt=media&#x26;token=004fad61-8e89-4342-a41e-8bc212af96d9" 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="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FnnvPgufTac9b921zkez8%2F35.png?alt=media&#x26;token=677042b4-ebaf-4a6a-9d04-0ff4de28084b" 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.

\\
