When I want to delete deep directory branches with a lot of files (e.g. a whole GCC source-and-build project of multimedia tools with several linked libraries), Far Manager often fails and reports it can't delete a directory because it is not empty. I guess there are background tools delaying the success, even though the function call already returned. I have to retry it, and after a few seconds it can usually continue.
I wonder if there is a different deletion function call which would wait on its own, provided that there is at all a kind of system callback which reports it reliably.
There is already another russian thread about this topic, but I don't understand much of it. It seems that the TortoiseSVN or Indexing services are suspected reasons.
Deleting deep directory branches stalls
Re: Deleting deep directory branches stalls
From time to time, I encounter the same problem. In my case, I don't even have any services which could block the deletion, apart from Windows' Indexing Service.