File → Delete
AI-generatedSummary
Delete a specific file from OnlyOffice either by moving it to trash or deleting it immediately based on user choice.
Inputs
- Item ID (required) — ID of the file to delete.
- Delete Immediately — Boolean flag indicating whether to delete the file immediately (true) or move it to trash (false). Defaults to false.
Output shape
a single JSON object representing the API response to the delete request
The output contains the server response after attempting deletion; it may include success confirmation or error details. The operation requires OnlyOffice API credentials set in the node.
Examples
Example 1: Delete a file by moving it to trash
Provide the Item ID of the file and keep 'Delete Immediately' unchecked (false). The file will be moved to trash, allowing potential recovery later.
Example 2: Delete a file permanently
Provide the Item ID of the file and set 'Delete Immediately' to true. The file will be permanently deleted with no option for recovery.