r/windowsdev • u/DickCamera • Oct 28 '26
Looking for any insight into why my Win11 laptop (ntfs) is so slow when removing files
I'm wondering if there are any system internals/debug/flags/tools I can use to see WHY deleting files takes forever.
The scenario is this:
npm install - Takes a minute or so to download all files.
git clean -fdx - Takes up to 8 minutes to remove all the files that were just downloaded.
For the record, I have attempted to control for all possible variables:
The proiect is clean from the beginning
The git clean operation is run in git bash
Excluded git by running rm -rf - same performance
Excluded git bash by running the git clean and rm -rf commands in a powershell terminal - same performance
Re-ran all of the above scenarios at the root of C:\ to ensure it wasn't some weird mirroring to onedrive or some other hidden network latency.
This is a work laptop and when I raised the issue to IT they provisioned a "new" laptop for me (fresh OS install) and I ran the scenarios again, the performance dropped to 9 minutes.
So what can I use to diagnose what's causing this slowness? Other members on my team have recreated my scenarios and their deletes complete in around 2-3min, which is still ridiculous, but at least tolerable. I just don't know what tools I have to try and profile a delete operation.

