Scrub API
POST/v1/tools/delete_room_messagefree

Delete 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

FieldTypeDefaultWhat it is
messagestringRequiredThe 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.