# Prune

### Delete until here

The easiest way to use Lindsey's pruning feature is to right click on the target message!

![](/files/tQknTSSePtJWgZOq76qe)

Then go to `Actions > Delete until here`, this will delete all messages in the chat until it reaches the message you clicked on (inclusive).

### Deleting recent messages

To delete 10 recent messages, simply go to the desired channel and type:

```
/prune count: 10
```

### Deleting messages from a specific user

To delete messages from a specific user, simply type:

```
/prune count: 2 user: User
```


---

# 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.lindseybot.net/lindsey/commands/prune.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.
