Orphan Cleanup

Orphan File Cleanup Tool 2.0.1

No permission to download

DCurrent

Site Owner, OpenBOR Project Leader
Staff member
This application solves a problem I have long seen creators, myself included, run into. How to clean up unused assets from the folder? There are existing tools like kill-thumbs, but it's a batch file that only targets thumbs.db, and isn't all that reliable. Chronocrash Modder's Tools has an orphan file remover in it, but awesome as that app is (seriously, get it right now if you haven't already), I found the orphan tool feature to be really clunky and hit or miss accuracy. Same goes for any generic file search utilities out there in the wild.

So, I built my own.

Screenshot 2026-04-14 045518.png

I'd actually created the app quite some time ago, but it was written as a PowerShell script for my own use, and required PS 7+ to function due to the GUI interface. Meaning, there wasn't much point in sharing because if you knew how to get the latest PS installed and running, you could have already rolled your own tool anyway.

...Not any more. I recently rewrote it in C# to compile and share as an executable. Gave me a chance to get some practice since I haven't done a lot of C# work before. Hopefully some of you find it useful. :)

DC
 
Thank you for this very useful software: I've tested it and I'd like to know if it's possible to list all the Orphan files separately?

Some files are fake Orphan:
For example, Beep1.wav and Beep2.wav are listed as Orphan files but are used by Openbor.
I think I'll use it regularly from now on to optimize the mods I release.
 
For example, Beep1.wav and Beep2.wav are listed as Orphan files but are used by Openbor.

Those are handled too. The app has an exception list that includes the engine's internal files by default, and you can add more. I had forgotten to port that from my original, but it's there. Download latest to make sure you have it.

DC
 
Okay, these files are no longer considered Orphan in the latest version.

Is it possible to sort the Status section to distinguish between Orphan and Active files?
I'd like to see which files are Orphan one by one before deleting them.
 
Okay, these files are no longer considered Orphan in the latest version.

Is it possible to sort the Status section to distinguish between Orphan and Active files?
I'd like to see which files are Orphan one by one before deleting them.

No, that would take a lot of extra coding that I'm not willing to do for this sort of tool. There's a text report generated as soon as you scan for exactly that reason. Look at it, and you'll have all the info you need before pushing the delete button. :)

DC
 
DCurrent updated Orphan Cleanup with a new update entry:

Sorting, Delete Tuning

  • You can now sort results in ascending or descending order by clicking on any grid column (@kimono).
  • Result grid now includes a delete mark, auto checked for orphan files. You can manfully tune which files to remove.
  • Grid uses the selected root path instead of full path (easier to read). Report still uses full path for file system searching.
  • Several internal code optimizations.

Read the rest of this update entry...
 
Back
Top Bottom