Very often, you can't delete files or folders because they are used by some process.
Windows doesn't show you what process it is. (Actually, Directory Opus sometimes shows the locking process, but not always)
The ShowWhatProcessLocksFile app integrates into the context menu and allows you to see locking processes and terminate them if needed.
Yes, actually, I used LockHunter as a reference to create ShowWhatProcessLocksFile. My goal was to create a simpler and open-source version that wouldn't require Admin rights to run.
Interestingly, Microsoft PowerToys was also inspired by LockHunter, as the UI is very similar.
LockHunter is probably the most powerful application to deal with file locks. They even created their own Windows driver to access file locks and close file handles. It is insane, but it allows it to work very fast