v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Fileman
Manage Files

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.

get/Fileman/empty_trash

Query parameters

older_thaninteger
Example:31

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.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "empty_trash",
  "module": "Fileman",
  "result": {
    "status": 1
  }
}