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.

Authorizations:
query Parameters
older_than
integer >= 0
Default: 0

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

Note:

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

Example: older_than=31

Responses

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

Request samples

uapi --output=jsonpretty \
  --user=username \
  Fileman \
  empty_trash

Response samples

Content type
application/json
{
  • "apiversion": 3,
  • "func": "empty_trash",
  • "module": "Fileman",
  • "result": {
    • "data": null,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}