Folder → Delete
AI-generatedSummary
Delete a folder in OnlyOffice by specifying its ID, with an option to either remove it immediately or move it to trash.
Inputs
- Item ID (required) — ID of the folder to delete.
- Delete Immediately — Boolean flag to choose between immediate deletion or moving the folder to the trash (default is false, meaning move to trash).
Output shape
a single JSON object representing the API response from the delete operation.
The operation returns the raw response from the OnlyOffice API's folder delete endpoint. If 'Delete Immediately' is true, the deleteAfter flag is sent as true in the request body to delete permanently; otherwise, the folder is trashed. Errors from the API are forwarded as part of the output or throw node errors if not set to continue on fail.