GET /api/maintenance/gc
Triggers the .NET garbage collector to release unused memory. Under normal operation ErsatzTV manages its own memory lifecycle, but this endpoint is useful when you need to reclaim memory immediately — for example, after ingesting a large batch of new media.boolean
default:"false"
When
true, issues a more aggressive, compacting garbage collection pass. When false (default), performs a standard generational collection.Responses
POST /api/maintenance/empty_trash
Permanently deletes all media items that have been placed in the ErsatzTV trash. Items in the trash are media that ErsatzTV has detected as missing from disk and marked for removal. This operation is irreversible — trashed items are removed from the database permanently. This endpoint accepts no parameters.Responses
POST /api/maintenance/clean_artwork
Queues a background job to delete orphaned artwork files from the artwork cache. Artwork becomes orphaned when the media item it was associated with is removed or when its artwork URL changes. Over time this can consume significant disk space.integer
default:"100000"
The maximum number of orphaned artwork records to delete in this operation. Reduce this value to rate-limit the cleanup job on systems with limited I/O resources.
Responses
Like library scans, the artwork cleanup runs asynchronously in the background worker. The
200 OK response confirms the job was queued, not that cleanup is complete.