DELETE
/api/v1/workspaces/{workspace_id}/folders/{folder_id}Delete a folder
Deletes a folder. By default (mode=trash) the folder, every folder inside it and everything filed in them go to the trash for 30 days, and come back together if you restore the folder. With unfile or move_up only the folder goes: what was in it moves to the top of the workspace, or into the parent folder.
Guide: Trash
Code samples and Try itPath parameters
#workspace_idstringRequiredThe workspace's id, from the address of its settings page (
markdrop.in/settings/workspaces/<workspace-id>) or from List workspaces.folder_idstringRequiredThe folder's id, from List folders.
Query parameters
#modestringtrash(the default),unfileormove_up. One oftrash,unfile,move_up. One oftrash,unfile,move_up. Default"trash".
Responses
#200OK.401No token, or the token is revoked or mistyped.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).429Too many requests from your IP address. Wait the seconds inRetry-After.
200 response: 4 fields (FolderDeleteResponse)
unfiled_documentsintegertrashedbooleanDefault
false.trashed_documentsintegerDefault
0.trashed_foldersintegerDefault
0.