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.

Request Samples

1

Response Samples

1Not Available

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 Content

The folder was deleted.

400Bad Request

The request was invalid. The folder was not empty, and recursive=true was not specified.

Schema
404Not Found

No folder exists at the requested path.

Schema
409Conflict

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