delete-chat-messages
Delete Foundry VTT chat messages by ID, batch delete all older than a given timestamp, or clear the entire log. Bulk operations require explicit confirmation.
Instructions
Delete chat messages: by exact id(s) (a single id is an array of one), or all messages older than a timestamp (beforeTimestamp + confirm:true — handy for the known Molten big-log perf drag), or the entire log (clearAll + confirm:true). Both bulk modes need confirm:true. IRREVERSIBLE. GM-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Exact message ids to delete (a single id is just an array of one). | |
| confirm | No | Must be true to run a bulk delete (clearAll or beforeTimestamp) — an explicit guard, both are irreversible. Not needed for a targeted ids delete. | |
| clearAll | No | Delete EVERY chat message. Requires confirm:true. | |
| beforeTimestamp | No | Delete all messages with timestamp (ms epoch) older than this — purge an old log. Bulk + irreversible, so requires confirm:true. |