Delete a folder
delete/folders/{folderId}
The specified folder is deleted. If the folder is not empty, a recursive option can be specified to indicate a recursive delete. If the folder is not empty and no recursive option is present, an error response is returned. Any non-folder content is not deleted.
Name | Type | Required | Description |
---|---|---|---|
folderId | string<object-id> | true | The identifier of a specific folder or one of the delegate strings @myFolder, @appDataFolder, @myHistory, @myFavorites, or @public. |
Status | Meaning | Description | ||
---|---|---|---|---|
204 | No Content | The folder was deleted. | ||
400 | Bad Request | The request was invalid. The folder was not empty, and recursive=true was not specified. | Schema | |
404 | Not Found | No folder exists at the requested path. | Schema | |
409 | Conflict | The request could not be completed due to a conflict with the current state of the resource. The folder has children, and recursive=true was not specified, or the folder contains non-folder children. | Schema |