Delete .trash folder content

This function purges content from the .trash folder in the user's home directory.

Important:

When you disable the FileStorage role, the system disables this function.

SecurityBasicAuth
Request
query Parameters
older_than
integer >= 0
Default: 0

The maximum age in days of content that the function will not purge.

Note:

A value of 0 will purge everything from the user's .trash folder.

Example: older_than=31
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Fileman/empty_trash
Request samples
uapi --output=jsonpretty \
  --user=username \
  Fileman \
  empty_trash
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "empty_trash",
  • "module": "Fileman",
  • "result": {
    • "data": null,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}