Skip to content
Reduce the disk usage of your projects by removing dependencies & builds
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
logo
src
.editorconfig
.gitignore
Cargo.lock
Cargo.toml
LICENSE
README.md
readme_logo.png
readme_screenshot.png

README.md

Project Cleanup

View on Crates.io Download License

This little tool will recursively browse a directory to find code projects in several languages. If the project hasn't been touched for more than a month, it will remove directories containing libraries, dependencies, builds, etc.

The reasoning behind this is that these files can be retrieved or re-generated at any time, but if you haven't worked on the project for a month chances are you don't need them taking up space on your hard drive right now.

Screenshot

Install

Download the binary for your platform from the releases page

Or install via Cargo: cargo install project-cleanup

How it works

Run the application with project-cleanup --help to see the options.

Supported languages

  • Node.js (will remove the node_modules and .cache directories)
  • Rust (will remove the target directory)
  • Java (will remove the .gradle and build directories)

These languages are based on my own experience and use patterns. I welcome issues and pull requests to add more languages and/or more unnecessary directories in already added languages.

License

Everything in this repository is published under the MIT license. See the LICENSE file for more information.

You can’t perform that action at this time.