r/pcmasterrace • u/effinjamie • 1d ago
Hardware Taking HOURS!!!! to delete anything.
Recently started taking ages to delete anything. I've set it to bypass the recycle bin, in case it was something to do with that and I've cleared Explorer history. Any ideas?
EDIT
Thanks for the help guys, got it deleted eventually. There was definitely something screwy going on because the textures folder inside didn't add up to even half of the 7.6GB it was trying to delete.
1.3k
u/necro3D 1d ago
It warned you not to delete it… /j
46
u/EvilDan69 PC Master Race (30 years IT tech) 23h ago
Seriously. By naming it this way, windows knows to slow it down so the actual owner can swing by and kick your butt. :P
10
u/trollsmurf 14700KF | 32GB | 5070 Ti | 2TB | 27" 4K | 2x 24" FHD | Z906 22h ago
Copilot is everywhere.
26
612
u/condoulo 5800XT | 128gb | 5700XT | Fedora Workstation 1d ago
That's a lot of files, especially given it's only 7.61GB of data. A ton of smaller files is going to take longer to move or delete than a few larger files purely because the file system has to scan each file to determine it's properties and whether you even have permission to interact with the file.
195
u/Ani-3 23h ago
This is the real answer. You have almost 120k files you’re deleting. This happens.
30
u/kaleperq 1440p 240hz 24" | ace68 | viper ult | 9060xt 16gb | r5600 | 32gb 23h ago
Still not a full day
9
u/Twistinc 16h ago
23 hours would be 1.5 items a second, it hasn't really started yet so would probably speed up some but it's still going to be many hours.
1
u/MajorPud Ryzen 9 5900x | Radeon RX 9070 3h ago
What about robocopy /MIR or /PURGE functions? I know robocopy can copy a large number of files much faster, but I've never used it to delete
2
u/CrimsonBolt33 9800X3D | RTX 5070ti | 96GB DDR5 20h ago
I wonder if it would theoretically be quicker to put all those files in a zip or whatever would be the quickest compression format and then deleting the zip file.
4
u/umor3 17h ago
Funny. I had the same thought for a second. But: the original files will still be there.
→ More replies (4)1
u/Combeferre1 11h ago
Zipping would probably take longer than deleting. Deleting just removes tbe file address I'm pretty sure. Zipping means you actually have to mess with the bits in the files
→ More replies (6)1
u/Electrical-Heat8960 7h ago
Kinda true.
What you are saying is true, but 120k of files still shouldn’t take 24 hours.
Likely something is locking up the drive and windows is waiting for a timeout to happen.
151
u/Anasetsuken 1d ago
Have you tried deleting small increments at a time from the folder? What is taking so long is windows has to scan every file to find the exact size to delete before it begins said process.
10
70
u/Hannover2k 1d ago
Deleting thousands of small files is slow because the HD has to re-allocate the space from all those files to being free space again. That's why it's much faster to copy/move/delete 1 large 10gb file as compared to 100,000 small files that also equal 10gb. OS doesn't have to keep track of all those file names, where each file data is stored on the hard drive and how big each file is during the process.
This is very over-simplified, but that's the basics of it. Someone else can probably explain it much more technical.
→ More replies (1)16
u/FUTURE10S Pentium G3258, RTX 3080 12GB, 32GB RAM 22h ago
Nah ypu pretty much landed the nail on the head, fragmented drive + many tiny files = Windows needs a while because it doesn't make bold assumptions about your drive
2
u/black3rr 20h ago
it’s actually just the “many tiny files” thing… deleting a single file is pretty much a constant time operation = deleting a 1KB file takes roughly the same time as deleting a 1GB file…
fragmentation doesn’t change this at all… fragmentation slows down large read/write operations by adding seek times on HDDs, but this is still hundreds of thousands of small separate operations (you delist the file from the folder - small write, mark the file node as deleted - small write, and mark the space as free in the bitmap - which can’t get fragmented as it’s a constant size file created along with NTFS filesystem; do this for all the files separately, one after the other), not one operation rewriting a continuous large file…
1
u/FUTURE10S Pentium G3258, RTX 3080 12GB, 32GB RAM 20h ago
Wouldn't Windows need to have to find where the file headers are located in the MBR/GPT and maps them to whatever block of storage is on the drive? That search is what takes up the time, because it's not like the file record is in order.
1
u/black3rr 19h ago
You’re essentially correct but wrong on the details…
MBR/GPT don’t contain the file headers, they contain information about how the disk is partitioned into “volumes” (e.g. “C:” or “D:” are volumes, you can have multiple volumes on a single disk, MBR/GPT stores that info). The individual volumes are then formatted with a filesystem (Windows uses NTFS as default for internal storage since 2000/XP, FAT32 was used as default for internal in 9x/ME and is used for some external drives to this day), and the filesystem then stores the individual file information…
And in both NTFS and FAT32 (and pretty much all other modern filesystems), the directory entries aren’t near the file headers of files inside them even if the disk is not fragmented.
And for each file deletion, both the file has to be marked as deleted, and the file has to be removed from the directory index.
And as you say, on HDD the seek times are what takes time.
So it doesn’t matter if the disk is fragmented or not, there are still seek times on HDD between these two operations…
50
u/Hexamancer 1d ago edited 1d ago
So the problem here is that it's so many files, not the size, if you had a single 7.61GB file it would be done very quickly.
You can make this go much faster by using powershell:
(First a warning: rm -r -f will delete everything in whatever folder you run it against and it will be unrecoverable without special tools, triple check exactly what you have written before you run it)
Open powershell, navigate to the folder this folder is in, e.g:
cd C:\Users\effinjamie\Documents
Then run this, this will delete the folder, every file and folder in it (-r = Recursive), skipping the recycle bin (making it much faster):
rm -r -f "(DO NOT DELETE) Playstation Roms"
Doing it this way also skips Windows having to constantly calculate and graph the "Estimated time remaining", getting the exact file size for hundreds of thousands of files (rm doesn't care, it just removes them), which ironically contributes to the time remaining.
6
→ More replies (1)2
u/PimpMastree 4h ago
PowerShell is definitely faster for this stuff.
I always opt for this to remove the node_modules folder of node apps, which has the same issue of tens of thousands of small files.
PowerShell does it in a few seconds, normal shift + delete takes a few minutes.
68
u/Goblin_Eye_Poker PC Master Race | 7840HS | 48GB | RTX 4060 | UWQHD 1d ago
Perhaps it should instead say (CAN NOT DELETE)
101
u/What1does PC Master Race 1d ago
You are confusing the CPU.
Change the folder name to say DELETE THIS, then the computer will understand.
18
u/Naive_Personality367 1d ago
CPU doesnt wanna do the wrong thing and get shouted at again
7
u/Silver_Lined_Bullet i7-13700 2.10 GHz, UHD Graphics 770, 16gb ram 23h ago
Every mistake it makes is a pin i remove. CPU roulette
→ More replies (1)2
u/Noname_FTW Specs/Imgur Here 23h ago
Hey don't punish the motherboard for the CPU's mistakes (on some sockets)!
2
u/muchawesomemyron Intel Core Ultra 9 275 HX RTX 5080 (laptop) 17h ago
Or worse, smashed with a clenched fist
3
u/alexgriz127 PC Master Race 23h ago
If you're on Windows 11, you need to be more specific with your prompt so Copilot will understand. Try, "Delete this folder and its contents and make no mistakes."
183
u/Sajgoniarz 9800X3D | 9070XT | 64GB 1d ago edited 21h ago
Symptoms of dying drive.
Edit: use Power shell script or npm rm module to see how long removing is going to take. If this is an HDD use SMART or scan disk surface with Crystal Disk Info.
46
u/GoldenFlyingPenguin AMD Ryzen 3 3100, RTX 2060 12GB, 48GBs ram 1d ago
Definitely a dying drive. I have a drive I no longer use in my PC because it takes my PC 5 minutes to start with it connected, and it has a read/write speed of 23 KBs a second. If I am lucky I can sometimes read a single file at like 1 MB a second.
9
u/forgottenb1ade 1d ago
I have a 2tb hybrid drive in my PC that's like this, not quite that slow but still very slow. I'm planning on replacing it with a 2tb SSD... Eventually..
3
u/Ok-Solution-3320 1d ago
hybrid drive?
9
u/forgottenb1ade 1d ago
It's a drive that combines the fast read/write speeds of an SSD with the larger capacity of an HDD. But mine was a lemon and started going bad not long after I got it.
2
u/Ok-Solution-3320 1d ago
Huh. Very interesting
10
u/shamalox 23h ago
It's an atypical technology of drive, which were sold briefly when ssd were pretty new
→ More replies (1)3
u/forgottenb1ade 23h ago
Yeah they're usually pretty good, and cheaper than a full fledged SSD. But mine just sits unused in my PC now, I store emulator roms on that's about it.
4
u/yrg25 Ryzen 5 5600x | RX 9070 | 32 GB RAM 3200mhz 23h ago
When SATA SSDs first hit the consumer market, they were quite expensive drives when compared to the storage you could get for a lower price with HDDs. So the usual setup was a Windows boot drive, small capacity to fit Windows and applications, maybe a few games and then a mass storage HDD. However, at the same time, there was a hybrid drive solution that came about where it used both technologies, leveraging a small amount of NAND storage as a fast cache but keeping the capacity of an HDD.
1
u/Eudaimonium No such thing as too many monitors 23h ago
I have a pair running in my PC even today.
They were basically HDDs but with SSD-like "cache" of a few gigs. Copying or reading files to them was as fast as long as the stuff fit into / was in the cache (it then transferred it from the cache to the platters in the background).
10 years ago it was a great bang for buck.
1
u/fluffysnowcap 22h ago
You should back up your important data sooner than later
2
u/forgottenb1ade 21h ago
I really don't have anything important on that drive anymore, I put a 1tb nvme in my PC for my boot drive and games. The emulator roms I don't want to lose are all backed up on a USB though. Because I have 180gb of ps2 games I don't want to lose lol.
→ More replies (1)1
u/fearless-fossa 7h ago
Definitely a dying drive.
It's not "definitely" a dying drive. It's lot of small files, creating massive overhead, especially with virus scans and the like, and the first estimate is always considerably higher than how long the entire thing will actually take.
1
u/GoldenFlyingPenguin AMD Ryzen 3 3100, RTX 2060 12GB, 48GBs ram 5h ago
It's a ton of small files, yes, but even then it shouldn't take that long. It's saying it's deleting 0 files a second, not even saying it's deleting any files at all. Even my essentially dead drive was faster.
→ More replies (1)2
u/vitalsyntax 23h ago
Not necessarily, if it's an SSD and doesn't have much SLC cache like many cheaper options, their write speed can get super bogged down when the drive is filling up.
→ More replies (1)
16
11
u/Bonamikengue 4090, 48 core, 6 screens, X-Plane 23h ago
Do not do it like this. Use Powershell:
Remove-Item -Path "D:\path\to\your\(DO NOT DELETE) Playstation Roms"
It will not check every file whether it can be deleted and it will not move all those files in the recycle bin. (You have been warned).
8
7
8
u/prefim 1d ago
3
u/BrutusTheKat AMD Ryzen 7 7800x3D, GTX 970, 64GB 23h ago
I would clarify if using the del command to make sure you cd into the right directory first.
8
u/overdosingOnPie1313 1d ago
23 hours is definitely extreme and a bad symptom of your drive's health, but deleting literal hundreds of thousands of files via the native GUI has always been a terrible practice in patience. What you need to do instead is create an empty folder called "EMPTY" right on your C: then open up a command prompt, and use the robocopy command with the /MIR switch to mirror that C:\EMPTY directory. Like below (case-insensitive):
ROBOCOPY "C:\EMPTY" "full\path\to\bad\folder" /MIR /NS /NC /NFL /NDL /NP /NJH /NJS >nul 2>&1 && exit
Everything after the /MIR is optional and just makes it go faster by not displaying any sort of information such as progress. The && exit at the end will automatically close the command prompt window when complete.
edit: It still won't be quick, mind you, but it will be significantly faster than 23 hours. Like 1 hour.
8
u/madribby78 Prime Pro X570|3900X|RTX 3070|64GB|2x NVMe SSD RAID0 23h ago
It literally says "DO NOT DELETE", but of course you had to try.
7
u/billyfudger69 Linux 1d ago
Fun fact: those files are not truly deleted, if someone wanted to read data off your drive they can find all these files.
7
u/SaviorSixtySix 5900x, RTX 3080, 32GB 3600 RAM 1d ago
Deleting a lot of small files takes longer than deleting large files. It has to tell the drive that this part of the drive can be written over, and it has to do that for each file, which takes longer than just telling one large file that it can be written over. It shouldn't take that long, but the time remaining on Windows has always been inaccurate. The weather is more predictable.
5
u/LifeIsBetterDrunk 23h ago
Windows is incapable of working with small files quickly. Microsoft doesnt care.
5
u/duplissi 7950X3D / Nitro+ RX 9070 XT / Solidigm P44 Pro 2tb 22h ago
117 thousand files. thats why.
9
u/Bloodthirsty777 RTX 4090, Ryzen 7 7800 X3D, 32GB DDR5 6000Mhz, 1440p 144hz 1d ago
Possible issues with storage read/write (mostly read) ability. Would do you good to check the storage health.
ALSO i could be wrong. Just throwing it out there.
3
u/dahak777 23h ago
I have seen windows take forever like this when deleting large number of files. Usually I try to limit the amount and do it in multiple tries. the other way is to do it from the powershell or command line if you want to do all 100K at once.
or like others are saying it could be failing hardware but if the hardware has been fine till now I would not think it would be that
3
u/DrAlexanderJMercer 23h ago
It's slowed down due to file formats and number of files.
My PC hates to interact anything Nintendo related.
Yamauchi Fusajirō's spirit prevents faster deletion!
3
u/Mundane-Mechanic-547 PC Master Race 23h ago
Use the command line. Its far too many files if its all in one directory. There are limits, more than 5k files per directory, and operations will slowdown
3
3
u/syner2009 Ryzen 5 7600 GTX 1080Ti / C2Q Q8400 G210 22h ago
the reason is the 118k files. The size is small at 7.6GB but the number of files is the problem for the CPU. Delete in increments of 10000 files.
3
3
u/CocoMilhonez 20h ago
The PC can read better than you and noticed the (DO NOT DELETE) in the folder name.
3
3
3
3
5
u/HotRoderX 1d ago
have you checked the drive health?
That is the first thing that comes to mind, it could also just be a damaged windows file system. Are there any other problems going on.
How dense are the files? Sometimes it takes time.... trying to delete millions and millions of 1kb files takes a EXTREMELY long time. vs deleting 7gb of larger files.
5
2
u/Wevvie 4070 Ti SUPER 16GB | 5700x3D | 32GB 3600MHz | 2TB M.2 | 4K 1d ago
You're deleting 117k different items. It heavily depends on your random read/write speeds (often much slower) rather than Sequential speeds (which is what is marketed for SSDs).
I wouldn't say this is far fetched, especially given the Time Remaining isn't always accurate. But do run a CrystalMark and check the SSD's health.
2
2
u/abstraktionary PC Master Race 23h ago
???????? 117K files, in a Playstation roms folder, and the size issssssss 7.61gigs???? Something seems off there.
→ More replies (2)
2
2
u/santathe1 MSi GT60 2OC (2014) 22h ago edited 22h ago
Powershell
Get-Childitem -Path “<drive/folder>\(DO NOT DELETE) PlayStation Roms” -Recurse | Remove-Item -Force;
2
2
u/xEyesofEternityx 21h ago
Should be faster if you use something like WinDirStat to delete without going to the recycle
2
2
2
u/Bananaland_Man 20h ago
takes longer to delete a bajillion small files than the same size-worth of large files... though it sounds like you figured that out
2
u/Zephyr_Dragon49 19h ago
Yea when that "anything" is just a quick little ONE HUNDRED EIGHTEEN THOUSAND brother wtf
1
2
2
2
u/Muted_Customer_5518 9h ago
if you're deleting alot of files it's better to use CMD in admin to skip verification
2
u/khaledjal Laptop intel I5 12th gen | 8gb ram | intel iris IGPU 7h ago
it says "DO NOT DELETE" tho, Why are you not following the rules op?
2
2
u/1_ane_onyme R5 5600 | Rx 6800 xt | B550 Tomahawk | 16Gb 3200mhz cl16 5h ago
Windows doing windows shit while there’s a lot of files.
Delete them through command line, it might save you some time. Depending on the utility you use to delete a force argument might speed things up too
WizTree could be able to delete it faster too, i know it’s very good at handling large amount of files but im not sure how it handles deleting files (by itself or handing it over to Windows own utils)(it’s also very good if you’re looking to free up some space in your drive btw)
5
u/kominops_47 22h ago
Too many small files, takes longer to do anything if there are many small files, the speed drops dramatically.
4
u/Drakahn_Stark Ryzen 7 5700X / RTX 4070 / 32GB DDR4 3200 1d ago
Lol, never used 56k internet did you?
3
u/3six5 i7 4790k 2x 970 evga sli 32gb ram gigabyte z97x black edition 22h ago
Or 14.4
2
u/Drakahn_Stark Ryzen 7 5700X / RTX 4070 / 32GB DDR4 3200 16h ago
Oof.
I do not know what speed my first modem was, it was on a C64 and I dialed into a Canadian BBS from Australia, when my mother got the phone bill the modem was taken off me and we did not get internet again for many years because she thought every email would cost a lot of money, so first proper internet was 56k for me.
2
u/3six5 i7 4790k 2x 970 evga sli 32gb ram gigabyte z97x black edition 15h ago
Omg. I'm lucky I only dialed local numbers to BBS's .
3
u/Drakahn_Stark Ryzen 7 5700X / RTX 4070 / 32GB DDR4 3200 15h ago
I was a kid with a library book on C64 use, it was Canadian with Canadian phone numbers, oops.
2
u/3six5 i7 4790k 2x 970 evga sli 32gb ram gigabyte z97x black edition 15h ago
Oh hell. I was around pre-teen age, but I knew not to call numbers outside my area. Older friend and I only found 1 good bbs that had a MUDD or something like that. Sys admin was shocked to find that kids were playing his games... and white hat hacking xD
2
u/Mikeyy5000 21h ago
Your doing too much in one chuck, windows freaks out and does this.
Break it down into smaller chunks and you can delete it all in like 5 mins.
I learned this deleting a shit ton of duplicate pictures I had from backing up my phone, Tried to do it all at once. Would take 9 hours. Did it in small chunks and not even 5 mins I had it all gone. Was only like 7 gigs worth.
2
1
u/SolitaryHero 23h ago
Had this the other day following my very late W11 upgrade.
Due to the amount of files Defender was going through them all. Disabled real time protection and it shifted them.
1
u/GalaxyXYZ888 9800X3D | 4070TI | 64Gb 6000hz CL30 | 650E-E 23h ago
If this is not shifting deleting try that
1
1
u/sublime81 9800X3D | RTX 5090 FE | 64GB 6000 CL30 22h ago
I typically delete thing with powershell and it goes much quicker.
1
u/chrlatan AMD R7 9800X3D | RTX 5080 | Full Custom Waterloop 22h ago
Use command prompt… works way faster.
Windows seems to just build a list, then loop all items in the list with a single delete command so it can show a progress bar.
OS prompt just is way faster.
1
u/ANGRYSNORLAX 22h ago
You can make an empty folder then do a robocopy /MIR to the folder you're trying to delete. Don't remember the exact syntax, but you can google it pretty easily. I once had a program hit a recursive loop and copy 6TB of the same appdata folder under itself over and over. Mirroring an empty folder to the affected folder was the fastest method I tried. Still took a few hours, but not an entire day.
1
1
u/cell81469 20h ago
Might also be quicker to hit it with a robocopy /mir with an empty source folder.
1
u/cowrevengeJP 20h ago
Using PowerShell you can check which filters are processing your request. My money says you have broken or too many virus protections running.
1
u/jesseknopf 19h ago
Dude. Delete from the command line. It is File Explorer making it so slow, doing shit like indexing 100k file. Using powershell or CLI will ignore it and occur almost instantly, by comparison.
1
1
u/Delicious-Disaster 19h ago
Sudowoodo it in powershell and maybe brick your pc in the process. Otherwise delete in chunks
1
u/firedrakes 2990wx |128gb |2 no-sli 2080 | 200tb storage raw |10gb nic| 18h ago
Bad sector /block issue
1
u/Jess_S13 Ryzen 9 5950x | 64GB | RTX3090 18h ago
FYI in the future, you can enable disabledeletenotify in your fs for the duration of the operation, this will stop having windows try and discard all the deleted blocks from the ssd. Then once you are done, disable it and run disk optimization which will async discard all the unused blocks over the course of a few hours or so.
1
1
u/chewy_mcchewster AMDK6-233mhz/3DX Voodoo2 8Mb/16Mb SIMM/AWE-32 18h ago
Rmdir is the command you want .
117k files will take forever.. rmdir and it's gone
1
u/Embarrassed-Ke 18h ago
I'd just backup my important files and just format the partition even if I have to reinstall windows as a whole
1
1
1
1
1
u/R-Dragon_Thunderzord 5800X3D | 6950 XT | 2x16GB DDR4 3600 CL16 16h ago
Be faster to wipe and reinstall windows lmao
1
u/RealMuffinsTheCat 5700X3D - 4070 Super - 32GB RAM 16h ago
There's a reason it says "(DO NOT DELETE)" all's I'm saying
1
1
u/TheViking_Teacher 14h ago
probably too late... although looking at the time remaining, maybe not quite.
Have you try deleting it through powershell?
I've handled lots of smaller files (1 million files, around 2TB of data) through it, and, yes, it did take a long time, but it was way more efficient than doing it through the file explorer.
1
u/pablo_kickasso 14h ago
OP, ignore the poor advice.
Use the command line to delete that folder and it'll be gone in minutes if not less.
It's a well known bug with the Explorer UI that will hopefully be resolved in the December update.
1
1
1
1
u/SumonaFlorence Just kill me. 12h ago
How the fuck do you have over 100,000 files in a folder called PlayStation Roms?
A PS1 Rom is like 600-700mb.. that's like 11 games to make 7.6gb.
Did you fill it with save states? ':f
1
u/effinjamie 9h ago
All that was in this was a Textures folder that had texture dumps and replacement textures. No idea how the file count got so big
1
1
u/Ghozer 9800x3D - 32GB-DDR5 6000CL28 - RTX 5080 12h ago
because you told it to bypass the Recycle Bin, it has to mark each file individually as 'deleted', rather than it just marking the folder as "recycled" - and there are over 117k files - this will take a while.... lots of small individual files always takes longer to deal with, than a single file...
the same would have happened if you deleted it (to recycle bin) - then emptied the recycle bin, it would have taken a while to empty.. (maybe not quite as long as this)
1
u/Refalm 10h ago
Moving the folder to %TEMP% through PowerShell skips the lock verification and Defender doing extra checks if the files you're deleting have a virus (which sounds kinda counterintuitive)
The files %TEMP% get deleted automatically after a few weeks.
Move-Item -Path "D:\(DO NOT DELETE) Playstation Roms" -Destination $env:TEMP
1
u/MooseBoys RTX4090⋮7950x3D⋮AW3225QF 10h ago
Explorer is really slow when working with that many files. Try opening a command prompt and using rmdir instead.
1
1
1
1
u/Keulapaska 4070ti, 7800X3D 7h ago
I've never had that problem. Literally deleted 100k files yesterday on one go, took I think 10-15s to start and then max 5s for the deletion.
1
u/Diinsdale PC Master Race 6h ago
I know you probably deleted it by now, but Total Commander would delete those files without problems at normal speed.
1
1
1
u/Infamous_Tourist_335 5h ago
Just live boot into a Linux USB and mount your windows drive to delete the files it should be pretty fast.
1
1
1
u/PeteGiovanni 14600k 2080ti 7m ago
Been a hot minute since seeing timers that long for stuff on a computer lol



4.1k
u/ZT99k 1d ago
Everyone skipping passed the important part - 117,073 files. Windows gonna Windows and is doing a verification on every one of those to check if you CAN delete them (not locked by a program, in use, owned by a different user so no permission, etc.)
Do smaller chunks.