folder-delete
Permanently delete a folder. Cascade behaviour for sub-folders and contained documents is controlled by two flags. Both default false — sub-folders and documents are orphaned to the parent (or root) when this folder is deleted.
deleteSubfolders: true recursively deletes child folders. deleteContents: true also deletes the documents inside the folder. Both true with a populated folder tree wipes a lot of data — confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folderId | Yes | Folder ID to delete | |
| deleteContents | No | Also delete documents inside the folder. Default false (orphan to root). | |
| deleteSubfolders | No | Recursively delete child folders. Default false (orphan to parent). |