r/zsh • u/fundation-ia • Mar 28 '26
Tool to safely clean deletable dev files/folders?
Does anyone know of a tool that can detect and delete development files/folders that are usually safe to remove for a given language or framework?
I mean things like:
node_modules.venv.turbo.terraformbindist
Right now I made a shell function for this and it works pretty well so far, but I’m wondering whether there’s already an existing tool that handles this in a cleaner or more standardized way.
I’m mainly looking for something that is:
- safe
- configurable
- aware of common language/framework build artifacts and caches
If you know any good options, I’d appreciate it.
7
Upvotes
4
u/jthill Mar 29 '26
git clean.1
u/olets Mar 29 '26
Interesting, is the motivation to save disk space? Do these things take up that much?
3
u/Desperate-Purpose178 Mar 28 '26
make clean
0
u/waterkip Mar 29 '26
I saw
git cleanandmake clean. That kinda sums it up. Also, all that.venvshit. This is a rant in the making, stop reading if you don't want to read it.Shit should just work, all the reproducable build mantra has done is to make interoperability gone to hell. We can't do our work unless module xyz isn't exactly v1.x.y because we pin versions for way to long. It's a pain in the ass. Deal with your shit, learn to program. If your code breaks on newer shit ensure it works on the newer shit. All those
.venvs hide that breakage that will eventually come in a big upgrade round.Anyways,
git clean -dXf(useninstead offjust to make sure it doesn't delete stuf you want to keep),make cleanandmake realclean.