Delete
AI-generatedSummary
Delete a file or folder at a specified full path in Synology File Station, with an option to recursively delete folders.
Inputs
- Path (required) — Full path to the file or folder to delete.
- Recursive Delete — Boolean flag to specify whether to delete folders recursively (default true).
Output shape
a single JSON object containing the Synology API response to the delete request
The response JSON reflects the result of the delete operation. The path input must be a string representing a single file or folder path. If deleting folders, recursive deletion can be enabled or disabled.
Examples
Example 1: Delete a single file
Set Path to the file's full path, Recursive Delete to false.
Example 2: Delete a folder and all its contents
Set Path to the folder's full path, Recursive Delete to true.