Fileman
Manage Files
Move a file to the trash
This function moves a file or directory to the account trash directory and records its original path so that you can restore it later with the restore_from_trash function.
Important:
When you disable the File Storage role, the system disables this function.
get/Fileman/trash_file
Query parameters
pathstring path required
Example:public_html/unwanted.txt
The path to the file or directory to move to the trash.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "trash_file",
"module": "Fileman",
"result": {
"data": {
"trash_leaf": "unwanted.txt"
},
"status": 1
}
}