Actions17
- File Actions
- Folder Actions
- Share Actions
File → Delete
AI-generatedSummary
Delete a file by moving it to the Trash in Zoho WorkDrive for a specified region.
Inputs
- Region — Select the Zoho WorkDrive region matching your credential to route the API request accordingly (default is US / Global).
- File ID (required) — The unique identifier of the file you want to delete (move to Trash).
Output shape
a single record indicating deletion success with keys { deleted: true, resourceId }
The operation sets the file status to '51' (trashed) and returns a confirmation JSON object. If the file ID is invalid or permission is denied, the node throws an error with a descriptive message.
Examples
Example 1: Delete a file in Zoho WorkDrive
Provide the region and the file ID of the file to delete. On execution, the node moves the file to Trash and outputs a success confirmation.