curl -X POST https://hapi.7331.org/v1/portal/rooms/general/clear \ -b cookies.txt
Copy
{ "ok": true, "cleared": 42}
Portal
Clear Room Messages
Wipe all messages from a room. Admin+ only.
POST
/
v1
/
portal
/
rooms
/
{room_name}
/
clear
Copy
curl -X POST https://hapi.7331.org/v1/portal/rooms/general/clear \ -b cookies.txt
Copy
{ "ok": true, "cleared": 42}
Requires an active session cookie with Admin or higher permissions. Deletes all messages from the room’s portal stream and broadcasts a portal:cleared event to all clients in the room.