Remove file

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

Params

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.

Response

If succeed to delete a file then:

{}

Errors

{
	"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’