# Delete Bot User

A new feature that allows you to set a user limit for your chatbot and automatically delete excessive users. This update streamlines the process of managing and maintaining your chatbot's user base.

#### Method 1: Action Step <a href="#method-1-action-step" id="method-1-action-step"></a>

The first method involves using an action step within your chatbot flow. Simply locate the "Delete Bot User" action step under the Basic Actions category. When the flow reaches this step, it will automatically delete the user, ensuring that subsequent messages or conditions are not processed.

<figure><img src="/files/A1E6GTMDJSdwBfl79uMp" alt=""><figcaption></figcaption></figure>

#### Method 2: Set Bot User Limits <a href="#method-2-set-bot-user-limits" id="method-2-set-bot-user-limits"></a>

Another way to automatically delete users is by setting bot user limits in the Rapidbott settings. Under the General section, you'll find the "Bot User Limit" option. By specifying a value greater than zero, the system will periodically check the total number of users and delete the oldest users if the limit is exceeded.

<figure><img src="/files/9byVDGz5f5BkuAMp79Qj" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/0hQ0TOPRyuCHcIbJyHpj" alt=""><figcaption></figcaption></figure>

#### Monitoring User Count: <a href="#monitoring-user-count" id="monitoring-user-count"></a>

To keep track of the number of users, head over to the Analytics section. Here, you'll find insights into the total number of bot users. This information will help you determine the appropriate user limit for your chatbot.

<figure><img src="/files/zwfrZ3hAl6djm1aY0TBj" alt=""><figcaption></figcaption></figure>

#### Additional Options: <a href="#additional-options" id="additional-options"></a>

If you prefer a more customized approach, you can create triggers based on specific conditions. For example, you can set a trigger to delete a user if there has been no interaction for a specified period. By using time-based triggers, you have greater control over the deletion process.

<figure><img src="/files/BrlXE2tjYjRgvfsgHA6x" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.rapidbott.com/help-center/flow-builder/steps/delete-bot-user.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
