Storage API : Delete
Script path: /storage/bin/api/delete.cgi
Description: Deletes a file or folder (and all its content).
INPUT (via GET or POST)
Mandatory parameters are: sid, path
Optional parameters are: none
sid | session id of the login user. [mandatory] |
path | path to an item [mandatory] Please refer to [How to specify a path]. path must point to an existing file or folder. e.g. Specify each of the multiple path parameter in full path format. e.g. path=/Private/File.txt&path=/Company+Share/Video.avi |
OUTPUT (content-type: text/plain)
Successful return:
true <newline>
Unsuccessful return:
false <tab> <error message> <newline>
e.g.
false <TAB> Access denied. (Or item may be locked)
false <TAB> Unable to delete an item within.
This last message means that while deleting an entire folder, one or more file
or subfolder within could not be deleted. This cause the folder to
remain in existence.