Delete a folder

delete/folders/{folderId}
Internal-Use Only

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.

Request Samples

1

Response Samples

1No example avaliable

Path Parameters

NameTypeRequiredDescription
folderId
string<object-id>
true

The identifier of a specific folder or one of the delegate strings @myFolder, @appDataFolder, @myHistory, @myFavorites, or @public.

Query Parameters

NameTypeRequiredDescription
recursive
boolean
false

do a recursive delete of the folder

Responses

StatusMeaningDescription
204No ContentThe folder was deleted.
400Bad RequestThe request was invalid. The folder was not empty, and recursive=true was not specified.Schema
404Not FoundNo folder exists at the requested path.Schema
409ConflictThe 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