> 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.1/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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ztrust.gitbook.io/ztrust-documentation/user-manual-ztrust-v4.1/4.-admin-manual/4.28-setup-delete-archived-inactive-user-feature.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
