How to delete locked folder in Windows

System Administration

Windows + R (Run) and type resmon.exe for ResourceMonitor Go to CPU section > Associated handles and in search box type your folder name (part of) You will see now which process is holding this folder and preventing it from deletion and in this case it is from TortoiseGit app. In order to disable this cache go to Tortoise Git > Settings > Icon Overlays and set Cache to None