Get Started
API backend
API system
More information

PUT api/2.0/files/fileops/delete This function requires authentication

Description

Deletes the files and folders with the IDs specified in the request.

Parameters
Name Description Type Example
DeleteAfter
sent in body
Specifies whether to delete a file after the editing session is finished or not System.Boolean
Immediately
sent in body
Specifies whether to move a file to the "Trash" folder or delete it immediately System.Boolean
Example
PUT api/2.0/files/fileops/delete
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "DeleteAfter": true,
  "Immediately": true
}
Returns

List of file operations