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 Bool value true
Immediately
sent in body
Specifies whether to move a file to the "Trash" folder or delete it immediately Bool value true
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