# What are Prune Messages

* If you are a server admin, or your admin has given you the **clean-channel-history** permission, the **prune messages** option allows you to delete messages from a channel swiftly.

![](/files/-M9cL2disui7JdZafvbE)

***Note: Messages and files deleted with this option are deleted forever and cannot be recovered.***

Use the following parameters to delete specific messages:

![](/files/-M9cL2djbtujGOqqQ27P)

* Newer than: Deletes all messages posted **after** a particular date.
* Older than: Deletes all messages posted **before** a particular date.

Fill dates for both the Newer than and Older than fields to delete all messages.

* Users: Allows you to specify any users to delete the content. When filled with a username, that user’s messages deleted.

Refine the parameters above with the following options. Check each to enable:

* **Inclusive**: Deletes all messages that land on the exact start/end times you have specified in the Newer than and Older than fields.
* **Exclude pinned messages**: Do **not** delete pinned messages.
* **Only remove the attached files, keep messages**: Removes files but not the messages themselves


---

# 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.orgchat.com/what-are-prune-messages.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.
