rm
To delete a file, use the file/rm command.
svc=file/rm¶ms={
"itemId": <long>,
"storageType": <uint>,
"path": <text>
}
Parameters
Parameter | Description |
itemId | Item ID. |
storageType | Storage type: |
path | Relative path from the root folder to the file. |
To clear public or protected storage totally, use “path”:“/” in your request.
Response
If the request is completed successfully, you will receive an empty response.
{} /* empty json */
If the request hasn’t been completed, an error code is returned.
Error codes
Error | Description |
1 | User not authorized. |
4 | Invalid input parameters. |
5 | File not found. |
7 | Insufficient rights to the item specified in the itemId parameter. |