Seriously, once PowerToys is installed, all you have to do is right-click on the offending file and choose "Unlock with Locksmith." Then a window pops up telling you exactly what program is locking ...
To restore a file, right-click on it and choose Restore (rather than Delete forever ). To restore multiple files, use the Shift key or the Ctrl/Cmd (Windows/macOS) key to select all the files you want ...