Chat
Delete a folder
DELETE
/chat-rooms/:roomId/folders/:folderIdSoft-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.
| Auth | Login required |
|---|
Path parameters
roomIdstringrequiredChat room ID.
folderIdstringrequiredFolder ID.
Response
| Field | Type | Description |
|---|---|---|
id | string | ID of the deleted folder. |
folderCount | number | Number of folders deleted, including itself. |
fileCount | number | Number of files deleted along with it. |
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}