remove_library_files
Remove all file records for a library from the Tdarr database without touching files on disk. Clears scan results so the library can be rebuilt with a rescan; confirm with the user before running.
Instructions
Remove every file record of a library from the Tdarr database (POST /api/v2/remove-library-files). Files on disk are NOT touched — this only clears the scan results, which then have to be rebuilt with scan_library. Ask the user before calling this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library_id | Yes | Library ID (dbID), from list_libraries |