rm

To delete a file, use the file/rm command.

Copied!
svc=file/rm&params={
    "itemId": <long>,
    "storageType": <uint>,
    "path": <text>
}

Parameters

Parameter

Description

itemId

Item ID.

storageType

Storage type:
 public (all users can see and download files),
 protected (only users with access rights can see and download files).

path

Relative path from the root folder to the file.

Response

If the request is completed successfully, you will receive an empty response.

Copied!
{}   /* empty json */

If the request hasn’t been completed, an error code is returned.

Error codes

Error
code

Description

1

User not authorized.

4

Invalid input parameters.

5

File not found.

7

Insufficient rights to the item specified in the itemId parameter.

Download PDF file
Download Word document

See also