I’ve been running this one-liner periodically from a PowerShell prompt, which is similar to jo2jo’s script, but without the need to copy the file list to another file:
Get-ChildItem -Path "$env:localappdata\Plex Media Server\Media\localhost" -Recurse -File -Filter 'index-sd.bif.tmp' | ForEach-Object { Write-Host Removing $_.FullName; Remove-Item -LiteralPath $_.FullName }
If you moved your Plex data directory somewhere else, replace $env:localappdata
with the folder that contains your ‘Plex Media Server’ folder.
All the responses I’ve seen point towards anti-virus getting in the way, like this recent reply from @drzoidberg33: Library.db size more than doubled in latest version - #124 by drzoidberg33 (sorry for another ping), but I’ve confirmed that it’s happening for me even with AV exclusions, or AV disabled completely. The fact that is seems to only be affecting index-sd.bif.tmp
files (and every instance, not just a few here and there) but not other temp files that Plex creates also seems suspicious.