Delete a file

DELETE/chat-rooms/:roomId/files/:fileId

Soft-delete a file you uploaded. Deleting an already deleted file succeeds.

AuthLogin required

Path parameters

roomIdstringrequired

Chat room ID.

fileIdstringrequired

File ID.

Request
curl https://api.4s.link/chat-rooms/ROOM_ID/files/FILE_ID \
-X DELETE \
-H "Authorization: Bearer 4s_at_..."
Example response
{
"id": "cf1a2b3c-...",
"deletedAt": "2026-08-29T00:00:00.000Z"
}