Delete

Delete a new folder (or a file) on a specified node.

Request

POST https://api.cloudplan.biz/api/folder/delete

{
    "node_id":"..."     //(string, optional) a suitable node will be chosen
                          automatically if empty
    "ff_id":"..."       //(string, required) the id of the file or folder
    "parent_id":"..."   //(string, semi-required) id of the parent folder
                          for deleting files this is a required field
}

Reply

{
    "result": true/false
}

Error Codes

no_parent_id_and_no_node_id
no_node_syncing_folder
ff_id_empty
user_not_found
user_has_no_access
delete_failed
ff_not_found

error codes from :doc:`api/user/login`