Skip to main content
POST
/
v1
/
portal
/
chats
/
{chat_id}
/
delete
curl -X POST https://portal-api.7331.org/v1/portal/chats/42/delete \
  -b "psession=YOUR_SESSION"
{
  "message": "Chat 'example' destroyed"
}

Documentation Index

Fetch the complete documentation index at: https://docs.7331.org/llms.txt

Use this file to discover all available pages before exploring further.

Destroys a chat — stops the VM if running, deletes all Redis live state and the DB record. All viewers in the chat receive a room:destroyed event and are removed. Authorization: Chat owner, or platform OWNER. Admins who need to delete other users’ chats should use the Admin API (POST /v1/admin/chats/{chat_id}/delete).
chat_id
integer
required
Chat ID.

Response

Returns 200 OK with a SuccessResponse body.
curl -X POST https://portal-api.7331.org/v1/portal/chats/42/delete \
  -b "psession=YOUR_SESSION"
{
  "message": "Chat 'example' destroyed"
}
This action is irreversible. All chat history, encryption keys, and VM state are permanently deleted.