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.

API token required60 per minute per IPMCP: delete_folder

Guide: Trash

Code samples and Try it

Path parameters

#
  • workspace_idstringRequired

    The workspace's id, from the address of its settings page (markdrop.in/settings/workspaces/<workspace-id>) or from List workspaces.

  • folder_idstringRequired

    The folder's id, from List folders.

Query parameters

#
  • modestring

    trash (the default), unfile or move_up. One of trash, unfile, move_up. One of trash, unfile, move_up. Default "trash".

Responses

#
  • 200OK.
  • 401No token, or the token is revoked or mistyped.
  • 422The request didn't validate. detail lists each problem, with where it is (loc) and why (msg).
  • 429Too many requests from your IP address. Wait the seconds in Retry-After.
200 response: 4 fields (FolderDeleteResponse)
  • unfiled_documentsinteger
  • trashedboolean

    Default false.

  • trashed_documentsinteger

    Default 0.

  • trashed_foldersinteger

    Default 0.

Did this page help?