> 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-v2.0/admin-manual/how-to-setup-delete-archived-inactive-user-feature.md).

# How to 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="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FMKfFXWisRQUqfcUYKTzM%2F27.png?alt=media&amp;token=ffacad5d-2d59-4610-a48a-a94d26cb50fc" alt=""><figcaption></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&amp;token=7658f4b3-7acb-447c-83eb-c3eed375be43" alt=""><figcaption></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&amp;token=b1c28f1e-3ef7-473d-b927-a854ae467883" alt=""><figcaption></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&amp;token=91b03f51-873b-4bf2-ba44-d9da6aabeacb" alt=""><figcaption></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&amp;token=d4dd3bfe-4710-42cb-a30a-a58ab6012f40" alt=""><figcaption></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&amp;token=d2970f65-ec7c-475c-bd25-d913d1053d8c" alt=""><figcaption></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&amp;token=004fad61-8e89-4342-a41e-8bc212af96d9" alt=""><figcaption></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&amp;token=677042b4-ebaf-4a6a-9d04-0ff4de28084b" alt=""><figcaption></figcaption></figure>

16. Click on the checkmark icon.

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

<br>
