Delete a folder

DELETE/chat-rooms/:roomId/folders/:folderId

Soft-delete a folder together with its files and subfolders. Only the creator can delete it, and the request is rejected if it contains files uploaded by others. The returned counts can be used in a confirmation dialog.

AuthLogin required

Path parameters

roomIdstringrequired

Chat room ID.

folderIdstringrequired

Folder ID.

Request
curl https://api.4s.link/chat-rooms/ROOM_ID/folders/FOLDER_ID \
-X DELETE \
-H "Authorization: Bearer 4s_at_..."
Example response
{
"id": "fd1a2b3c-...",
"folderCount": 3,
"fileCount": 12
}