Skip to content

Dump Trash

Dump all content from the trash immediately.

Endpoint

http
DELETE /api/v1/trash/dump

Request example

sh
curl --location --request DELETE 'https://files.ro/api/v1/trash/dump' \
--header 'Authorization: Bearer {token}'

Response

json
{
  "type": "success",
  "message": "The trash was successfully dumped."
}
json
{
  "type": "error",
  "message": "You are not authorized"
}
json
{
  "message": "The given data was invalid.",
  "errors": {
    "field": [
      "The field is required."
    ]
  }
}