Best way to delete over 2 mm files?


Recommended Posts

I had no idea an app (epg123)  had created so many files in it's cached folder.   It's over 2mm files.

 

The problem with the files is that it I didn't realize File History Backup was enabled on my HTPC back to my home server.  I now have these files duplicated across my pool of drives. 

 

I tried using rmdir first without realizing that the there were that many files within this sub directory.  That was several hours ago.   Is there any way I can get out of this mess?

Link to comment
https://www.neowin.net/forum/topic/1320112-best-way-to-delete-over-2-mm-files/
Share on other sites

I'm not sure if that's going to do it.  Any type of process via Windows took a considerable amount of time.   Hell, it took over 10 minutes just to get the count. 

 

I'd prefer a cmd prompt way which is why I thought rmdir would do it but I'm not sure how quickly it's deleting either.  They are very small files so I can only imagine the amount of thrashing occuring

You could try PowerShell, as it's 64bit and more modern it might run faster, but any way you work it it's gonna take a fair bit of time.

 

Remove-Item c:\directory\* -recurse

Is the command (-recurse will delete all child items as well).

For future reference, this is what I use.

 

There was a temporary internet file folder one time that had 3 million files. So I looked online and found this

 

del /f/s/q content.ie5 > nul 

 

Replace content.ie5 with whatever folder you want to delete the contents of

On 1/22/2017 at 10:33 PM, AndyD said:

I had no idea an app (epg123)  had created so many files in it's cached folder.   It's over 2mm files.

what unit of measurement is mm (besides millimeter)? LOL

  • Like 1

Hello,

 

I have seen it used as an abbreviation for million or millions, most often used by people in the publishing, marketing or public relations area.  As far as measurements, there's megameter for distances, which is abbreviated as Mm and is 1,000km, and millimolars for concentrations, which is abbreviated as mM and is 0.001 molars.  In the fabric industry, there's mommes for weighing silk, which is abbreviated as mmM.M. is also used as an abbreviation for Metro Manila, the capital (and surrounding suburbs) of the Philippines, so if someone were talking about M.M.'s population or territory, it could be used as a value in that context.  For example:  Both M.M. and L.A.¹ have populations of about 12.8 million people.

 

Regards,

 

Aryeh Goretsky

¹The Greater Los Angeles Metropolitan Area.

 

20 hours ago, oldtimefighter said:

what unit of measurement is mm (besides millimeter)? LOL

 

Thanks for the other methods guys!

 

mm - is used quite frequently in Finance to represent millions :)

 

https://en.wikipedia.org/wiki/Million

 

"One million (1,000,000) or one thousand thousand is the natural number following 999,999 and preceding 1,000,001. The word is derived from the early Italian millione (milione in modern Italian), from mille, "thousand", plus the augmentative suffix -one.[1] It is commonly abbreviated as m[2][3][4] or M;[5][6] further MM ("thousand thousands", from Latin "Mille"; not to be confused with the Roman numeral MM = 2,000), mm, or mn in financial contexts."

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Microsoft confirms Recycle Bin bug across all versions of Windows by Usama Jawad A couple of days ago, we reported that the latest Patch Tuesday update has seemingly resulted in a lot of issues for many users, including OneDrive and Dropbox access problems, BitLocker recovery lockouts, and BSODs. Although Microsoft is yet to acknowledge these bugs, it has confirmed another, relatively smaller issue across all supported versions of Windows. In an update on its Windows Release Health Dashboard, Microsoft has confirmed that after installing June's Patch Tuesday update (KB5094126), you'll experience unexpected behavior when leveraging Recycle Bin. Basically, when you attempt to delete an item from the Recycle Bin, the confirm dialog will show you the internal file name of that content rather than the actual name. For example, the file may be named abc.png, but the confirm dialog will ask if you're sure that you want to permanently delete $Rxxxxx.png from the Recycle Bin. This is pretty much it for the scope of the bug itself; it just displays the wrong name in the confirm dialog. The correct name will be shown in the list view of the Recycle Bin and if you restore the file, it will return with the correct name as well. This issue affects pretty much all supported versions of Windows client and server, including: Client: Windows 11, version 26H1; Windows 11, version 25H2; Windows 11, version 24H2; Windows 11, version 23H2; Windows 10, version 22H2; Windows 10 Enterprise LTSC 2021; Windows 10 Enterprise LTSC 2019; Windows 10 Enterprise LTSB 2016 Server: Windows Server 2025; Windows Server 2022; Windows Server 2019; Windows Server 2016; Windows Server 2012 R2; Windows Server 2012 As things currently stand, Microsoft is working on a concrete solution that will be released in a "future" Windows update. It remains to be seen if the firm will wait till the next Patch Tuesday or roll out an out-of-band (OOB) fix. The good news is that commercial customers can deploy a workaround right now, but they will have to reach out to Microsoft Support for Business for additional details.
    • They said by this time everyone will have flying cars. WELL...
    • A study by physicist Henry Tye of Cornell University suggests that the universe may not expand forever. Instead, it could eventually stop expanding, begin contracting and end in a "Big Crunch" roughly 20 billion years from now. Maybe not as we now know that time can flow backwards.
    • Of course. Simply reverse the polarity.
    • It is clear from this aricle that "Time Is On My Side" no matter which direction it is flowing., https://noai.duckduckgo.com/?i...m%2Fwatch%3Fv%3DsEj8lUx0gwY
  • Recent Achievements

    • Reacting Well
      BizSAR earned a badge
      Reacting Well
    • First Post
      AndreaB earned a badge
      First Post
    • Week One Done
      Huge Trailer earned a badge
      Week One Done
    • Week One Done
      Classifyskilleducation earned a badge
      Week One Done
    • One Month Later
      eurospharma62 earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      577
    2. 2
      +Edouard
      183
    3. 3
      PsYcHoKiLLa
      75
    4. 4
      Michael Scrip
      72
    5. 5
      neufuse
      64
  • Tell a friend

    Love Neowin? Tell a friend!