Data Types

DeleteFolderRequest

Request body for DeleteFolder.

If the folder has overridden storage settings, then no files will be deleted.

You can use ListFolder to preview the operation: set dryRun=true with recursive, includeFiles and includeVirtualFolders set to match the values you're using here. Leave all other flags unset.

{
"deleteFiles": Boolean,
"folderPath": String,
"recursive": Boolean
}
{
"deleteFiles": true,
"deleteVirtualFolders": true,
"folderPath": "/uploads",
"recursive": true
}

If true then deletes files.

Default: true

Type: Boolean

Required: No

If true then deletes folder settings.

Default: true

Type: Boolean

Required: No

The folder to delete.

Example: "/uploads"

Type: String

Min Length: 1

Max Length: 512

Required: Yes

If true then deletes files and folder settings that descend folderPath.

If false then only deletes files that are direct children of folderPath and only deletes the folder settings of the current folder (if any). Does not delete the folder settings of any child or descendant folders.

Default: true

Type: Boolean

Required: No

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: