svc=file/rm¶ms={"itemId":<long>, "storageType":<uint>, "path":<text>}
Param | Description |
---|---|
itemId | element id |
storageType | storage type: 1 - public(all users may see/download files ), 2 - protected (that users may see/down- load files who being grant rights) |
path | relative path from root folder to the file |
If you want to clear public/protected storage totally please use
"path":"/"
in your request.
If succeed to delete a file then:
{}
{ "error":<uint> /* error code */ }
Error code | Description |
---|---|
1 | not authorized |
4 | incorrect id stated (not digits) |
5 | file not found for deleting |
7 | there is no element with that 'id' |
|