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
- 200
- 403
All messages cleared, returns remaining message count (should be 0)
User does not have permission to clear messages