Deletes a file with the ID specified in the request.
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 | System.Boolean | |
Immediately
sent in body
|
Specifies whether to move a file to the "Trash" folder or delete it immediately | System.Boolean |
DELETE api/2.0/files/file/1234 Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "DeleteAfter": true, "Immediately": true }
List of file operations
{ "status": 0, "response": [ { "Id": "some text", "Progress": 1234, "Error": "some text", "Processed": "some text", "Finished": true, "Url": "some text" } ] }