API Reference/api/admin/api/admin/clear

/api/admin/clear

Info
Danger

Requires super administrator privileges.

POST
Clear storage

Body (JSON)

Field NameTypeDescription
orphanedbooleanSet to true if you want to clear files without an owner

200
Ok (JSON)

  • cleared storage - All files are now removed.
  • cleared storage (orphaned only) - Files that are without owners are removed.

400
Bad request (JSON)

  • failed to clear the database or storage: [ERROR] - Something went wrong while clearing storage, it's best to open an issue with any logs that lead up to this.
Last updated: 3/3/2025
Edit this page on GitHub