Byenow - a multi-threaded folder remover

Discussion in 'backup, imaging & disk mgmt' started by angstrom, Feb 19, 2020.

  1. angstrom

    angstrom Registered Member

    Joined:
    Oct 27, 2013
    Posts:
    126
    Location:
    Switzerland
    Something I made a couple of weeks ago and thought I'd share to brag a bit and to get some feedback.
    byenow.gif
    It's a multi-threaded folder removal utility. Similar in function to rmdir /s, but uses all CPU cores to scan and delete folder contents. Also with a better progress reporting, but that's subjective.

    Homepage is here - https://iobureau.com/byenow

    The program talks to the kernel directly when scanning, so each individual scan is marginally faster. It also does that using a larger buffer, so fewer kernel calls are needed to traverse larger folders.

    Local folder deletes are usually faster that "rmdir /s", depending on the file system cache state, device type, machine load, etc. The best speed up I saw was a bit over 2 times deleting a copy of Windows folder from an NVMe drive.

    Remote folder deletes are virtually always faster. This is because using multiple threads keeps the request pipeline filled, countering the effects of round-trip latency, so the remote end doesn't get a chance to idle and it's always busy doing something.

    Freeware. Both 32- and 64-bit versions. Small in size.

    The source is public, but it uses several Win32 API wrapper libraries that aren't included in the release.

    Have a look, let me know what you think?
     
  2. EASTER

    EASTER Registered Member

    Joined:
    Jul 28, 2007
    Posts:
    11,126
    Location:
    U.S.A. (South)
    Not D/L yet but......

    We assume for testing purpose first it has a scan mode? Thanks for another new program

    EDIT: Nevermind- Command Line -preview :thumb:
     
  3. The Seeker

    The Seeker Registered Member

    Joined:
    Oct 24, 2005
    Posts:
    1,338
    Location:
    Adelaide
    @angstrom Your apps are what I miss the most since moving to Linux. I'll have to rm -rf like an animal for the time being.
     
  4. angstrom

    angstrom Registered Member

    Joined:
    Oct 27, 2013
    Posts:
    126
    Location:
    Switzerland
    @EASTER It will also ask to confirm if in delete mode. CYA all the way :)

    @The Seeker Cheers, thanks. The good news is that rm -rf will still likely beat the pants off from this thing, even if it's single-threaded.
     
  5. guest

    guest Guest

    byenow is a command line tool for Windows to delete folders faster
    February 20, 2020
    https://www.ghacks.net/2020/02/20/b...ne-tool-for-windows-to-delete-folders-faster/
     
  6. The Seeker

    The Seeker Registered Member

    Joined:
    Oct 24, 2005
    Posts:
    1,338
    Location:
    Adelaide
    That's good to know! For what it's worth, I still use Bvckup 2 on my wife's PC :)
     
  7. guest

    guest Guest

    Stumbled over a new version (no changelog):

    Byenow 0.6 (November 18, 2021)
    Website
    Download: https://iobureau.com/byenow/byenow-0.6.zip
     
  8. kC_

    kC_ Registered Member

    Joined:
    Apr 6, 2007
    Posts:
    580
    Why not just use robocopy built into windows? Source as an empty... Destination you want to be emptied and the Mt is multithread

    Robocopy "c:\emptyfolder" "d:\foldertobeemptied" /MIR /mt:16
     
  9. angstrom

    angstrom Registered Member

    Joined:
    Oct 27, 2013
    Posts:
    126
    Location:
    Switzerland
    Because it's slower?

    /mt applies only to copying of files, all other operations robocopy does in its main thread, sequentially.
     
  10. angstrom

    angstrom Registered Member

    Joined:
    Oct 27, 2013
    Posts:
    126
    Location:
    Switzerland
    Byenow 0.8 (November 13, 2022)
    Website
    Download: https://iobureau.com/byenow/byenow-0.8.zip

    Changelog:
    0.8 - added "--omni-delete" option to allow deleting a file rather than a folder.
    0.7 - fixed the output of non-ASCII path names
    0.6 - added "--yolo" option to allow deleting system folders
     
    Last edited by a moderator: Nov 13, 2022
  11. The Seeker

    The Seeker Registered Member

    Joined:
    Oct 24, 2005
    Posts:
    1,338
    Location:
    Adelaide
    :argh:
     
  12. angstrom

    angstrom Registered Member

    Joined:
    Oct 27, 2013
    Posts:
    126
    Location:
    Switzerland
    Byenow 0.9 (November 16, 2022)
    Website
    Download: https://iobureau.com/byenow/byenow-0.9.zip

    Changelog:
    0.9 - fixed a memory leak when using the NtDeleteFile deletion method
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.