Skip to main content

Trigger orphan cleanup task

POST 

/api/v1/admin/cleanup-orphans

Enqueues a background task to scan and delete orphaned files (thumbnails and covers without database entries).

Permission Required

  • Admin access required

Returns the task ID which can be used to track progress.

Responses

Cleanup task queued successfully