Actions36
- List Files
- Search Files
- Download File
- Upload File
- Create Folder
- Rename
- Delete
- Copy / Move
- List Starred Files
- List Recent Files
- List Shared with Me
- List Shared with Others
- Get File Ancestors
- Create Share Link
- List Share Links
- Update Share Permissions
- List Labels
- Create Label
- Update Label
- Delete Label
- Add Label to File
- List Files by Label
- Star File
- Convert Office File
- List Team Folders
- Get Team Folder Members
- Create Webhook
- List Webhooks
- Get Webhook
- Update Webhook
- Delete Webhook
- Get File Thumbnail
- Upload from DSM
- Request Access
- Custom Drive Call
- List Drive APIs
Delete
AI-generatedSummary
Delete files or folders on Synology Drive by specifying one or more paths, optionally performing recursive deletion and including extra parameters.
Inputs
- Paths (JSON Array) (required) — A JSON array of file or folder paths on Synology Drive to delete.
- Recursive — A boolean flag indicating whether to recursively delete folders and their contents.
- Extra Params (JSON) — Additional parameters as JSON object to customize the delete operation.
Output shape
a single JSON object indicating success or failure of the delete operation.
The output contains at least a success boolean. On failure, error details may be included.
Examples
Example 1: Delete multiple files non-recursively
Set 'Paths (JSON Array)' to the list of file paths to delete, leave 'Recursive' as false.
Example 2: Recursively delete folders and files
Set 'Paths (JSON Array)' to the list of folder paths, set 'Recursive' to true to delete contents recursively.
