Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
Changed onDeletes a folder asynchronously.
You can use ListFolder to preview the operation using the dryRun parameter.
External storage: external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed.
Requires a secret_* API key. Alternatively, you can use a public_* API key and JWT-based auth.
Request
- Base URLhttps://api.bytescale.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Request body
Example request
{
"deleteFiles": true,
"deleteVirtualFolders": true,
"folderPath": "/uploads",
"recursive": true
}Response
Success.
Example response
{
"jobId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"jobUrl": "https://api.bytescale.com/v2/accounts/FW25aki/jobs/ExampleJob/01ARZ3NDEKTSV4RRFFQ69G5FAV"
}Changes
- warning
added the new
AntivirusJobenum value to theresponse property for the response status - warning
added the new
ProcessAudioJobenum value to theresponse property for the response status - warning
added the new
ProcessImageJobenum value to theresponse property for the response status - warning
added the new
ProcessVideoJobenum value to theresponse property for the response status - warning
added the new
ResetCacheJobenum value to theresponse property for the response status - info
removed the
ProcessFileJobenum value from theresponse property for the response status
- warning