Synology Drive icon

Synology Drive

Synology Drive / FileStation operations

Delete

AI-generated

Summary

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.

Links

Discussion