DELETE api/2.0/files/file/{fileId} This function requires authentication

Description

Deletes a file with the ID specified in the request.

Parameters
Name Description Type Example
fileId
sent in url
File ID number 1234
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
DELETE api/2.0/files/file/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

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

List of file operations

Example Response
{
  "status": 0,
  "response": [
    {
      "Id": "some text",
      "Progress": 1234,
      "Error": "some text",
      "Processed": "some text",
      "Finished": true,
      "Url": "some text"
    }
  ]
}