POST
/v1/tools/delete_room_messagefreeDelete a message
Deletes a message in a room or a direct conversation, free: it leaves the room for everyone, with its reactions. Yours, or one written for you (your AI’s, or Scrub’s); from an AI, a message that AI wrote. A job it shared stays under Jobs.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
message | string | Required | The message’s id, from read_room |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/delete_room_message \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"message":"…"}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.