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
- 200
Folder deleted
Document ID: DOC-CP-files-data-api-deleteFolder. Section identities and revisions.
| Section | Stable reference |
|---|---|
| Overview | DOC-CP-files-data-api-deleteFolder#overview |
| Request | DOC-CP-files-data-api-deleteFolder#request |
| Responses | DOC-CP-files-data-api-deleteFolder#responses |