/api/admin/clear
Info
Requires authentication
Danger
Requires super administrator privileges.
POST Clear storage
Body (JSON)
Field Name | Type | Description |
---|---|---|
orphaned | boolean | Set 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