/api/server/clear_zeros

Find and (optionally) delete files with zero-byte size from your storage/database.

Info

This endpoint requires authentication.

Info

This endpoint requires administrator privileges or higher.

GET
Request

Scan for zero-byte files currently in the database/storage.

Response

Status: 200 OK

Content-Type: application/json

PropertyTypeDescription
filesarrayAn array of zero-byte file objects or IDs found.

DELETE
Request

Delete all files identified as zero-byte from both storage and the database.

Response

Status: 200 OK

Content-Type: application/json

PropertyTypeDescription
statusstringStatus message about the operation.

Example

{
"status": "Successfully deleted 2 zero-byte files."
}


Last updated: 6/1/2025
Edit this page on GitHub