• 0

Software to delete files at Random


Question

I know my request my seems odd, but I need a software that deletes files from a folder (and subfolders) randomly to satisfy certain conditions. For example, I want to specify a large folder and request that it deletes files at random until the size of that folder is, say, 200 MBs.

Does anyone know of an utility that does this kind of stuff? And if someone needs to ask, I want to use this utility on large picture galleries (jpg's) to reduce Hard-drive usage.

Link to comment
https://www.neowin.net/forum/topic/943558-software-to-delete-files-at-random/
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Why delete them at random? Why not just start at the oldest pics, put the ones that you really really want to keep on a CD/DVD and then delete the rest? I can understand the mentality of "but when I see them I'll want to keep all of them" but ultimately you just need to man up like I do with films, music and pictures and say, "once these are gone, a week from now I won't remember what they were."

At least this way you'd be sure that nothing gets accidentally deleted by a random deletion.

However, to answer your question, I don't think such a program exists. Try looking in to contracting a virus though, I hear some of them are quite good at deleting files randomly...

  • 0
  On 06/10/2010 at 09:58, dancsi said:

Well, you can always write a quick-n-dirty program in some of the .NET languages, or I guess that there is a way to do it with a powershell script

Yeah, I might end up doing that... Just thought there might be a good general purpose utility for this kind of task.

  • 0

Deleting pictures at "random" is not really the correct answer. Come on you have to be kidding, that's the solution you come up with??

Here are better solutions.

Delete/Archive the pictures you do not need! Continue to justify deletion/archival based upon some criteria that ranks importance of the images that should be maintained in the gallery until goal of storage space used is obtained.

Reduce the file size of the images to fit all of them in the space you have, be it either through reduction in pixels x pixels size or since jpg by quality of the image.

Get more space to allow for current images at current size and quality, better yet increase size to allow for growth. (BEST Solution)

Some combination of all of the above.

Delete at random?? That's just plan insane!

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

    • No registered users viewing this page.
  • Posts

    • Step 1. Order less Doordash/takeaway Step 2. Profit.
    • I have always found it funny when people think in Black and White. Windows is my choice of OS, and I understand it and somewhat like it. However, I don't blindly accept or like all of it. Heck, Windows 11 is a dogs breakfast, just as Win10 was, and basically Microsoft's past 10+ years of direction. Having said that, Linux certainly has its place. And while this isn't an attack on Linux, I think the people who blindly think Linux is the answer are just as bad as blinded Windows users, if not worse. Windows is attacked for being "basic" and "bland", as is MacOS in many situations. There's a good reason they are basic and bland, and its partly why they're so popular. They targeting a broad audience. People who use their PC as a tool for work and casual browsing, or right up to people who game or programming stuff. It also needs to be robust, and hard to break. Windows has come a long way with that since the 9x days, and while still has a few vulnerabilities, it's unlikely to be unusable or unstable by messing with some settings. I however managed to destroy the stability of a Ubuntu desktop within an hour (not deliberately, I was trying to get a custom UI), and struggled to recover from it just by changing a few settings. Stupid I know, but it was so easy to break. That is why Linux can't be mainstream in its current form.
    • I mean at this point, why even have a desktop? Just open a browser window full screen and send her to her homepage. Access to anything she needs right there. Could be on Linux, could be on Android, heck could also be on Windows 11. No one would know!
    • Will be replacing my last 2 Windows 10 PC's in household ASAP, if they could upgrade now i've done it already. Main Desktop runs Windows 11 already, that ones all set. Now just to get the other 2 all set asap
  • Recent Achievements

    • Reacting Well
      pelaird earned a badge
      Reacting Well
    • Mentor
      The Werewolf went up a rank
      Mentor
    • First Post
      Myriachan earned a badge
      First Post
    • Week One Done
      DrRonSr earned a badge
      Week One Done
    • Week One Done
      Sharon dixon earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      595
    2. 2
      ATLien_0
      212
    3. 3
      +FloatingFatMan
      169
    4. 4
      Michael Scrip
      152
    5. 5
      Som
      151
  • Tell a friend

    Love Neowin? Tell a friend!