Skip to main content

Delete a folder

POST 

/api/v1/storage/delete-folder

Deletes the selected folder entry and reports deletion counts on success.

With recursive false or omitted, the operation leaves descendants in place and does not require an empty folder. This option cannot safely test whether the project still contains documents.

With recursive: true, it also attempts descendant file and folder deletion. A failure can follow earlier object deletions, so inspect the resulting state before recovery.

Request​

Responses​

Folder deleted

Document ID: DOC-CP-files-data-api-deleteFolder. Section identities and revisions.

SectionStable reference
OverviewDOC-CP-files-data-api-deleteFolder#overview
RequestDOC-CP-files-data-api-deleteFolder#request
ResponsesDOC-CP-files-data-api-deleteFolder#responses