Skip to main content

Clear all messages

POST 

/thread/:id/clearMessages

Deletes all messages from a thread in batches of 50. Resets unread counts and read timestamps for all participants. Requires the bm_can_administrate capability or moderator permission. This is a destructive operation — all message content and attachments are permanently removed.

Request

Responses

All messages cleared, returns remaining message count (should be 0)