polykill

Crates.iopolykill
lib.rspolykill
version1.5.2
created_at2023-05-03 00:48:16.179953+00
updated_at2025-05-26 01:49:32.187341+00
descriptionLightweight command line utility for removing dependencies and build artifacts from unused projects.
homepagehttps://github.com/Bdeering1/polykill#readme
repositoryhttps://github.com/Bdeering1/polykill
max_upload_size
id855037
size49,880
Bryn Deering (Bdeering1)

documentation

README

Polykill

Crates.io Crates.io (Downloads) Crates.io Size

Like polyfill - but more violent

Lightweight command line utility for removing unwanted dependencies and build artifacts from local projects. Inspired by npkill.

Supported project types:

  • Node
  • Cargo
  • .NET
  • Go
  • Gradle
  • Mix
  • Composer
  • Misc. (see "Additional Information")

Installation

cargo install polykill

Usage

polykill [OPTIONS] [DIR]

Polykill will recursively search for projects in the provided directory and output a list of all projects found. If no directory is provided, the current directory will be searched.

When the search has completed, navigate the menu using the following controls:

Key Bind Action
↓, ↑, ←, →, h, j, k, l select project
enter, del remove artifacts
esc, q exit

Warning for Node projects: Some Node applications need their node_modules directory to work and deleting it may break them.

Options

Argument Description
-v, --verbose Verbose output
-s, --skip-empty Hide projects with zero possible disk savings
      --no-vcs Include projects without version control (will slow down search)
-u, --unsorted Don't sort projects
-h, --help Print help
-V, --version Print version

*supported version control systems are: git, svn, and mercurial

Additional Information

How projects are identified and which files or directories will be removed:

Type Identifier(s) Artifacts
Node package.json node_modules
Cargo cargo.toml target
.NET .csproj bin, obj
Go go.mod dir(.exe), dir.test(.exe)
Gradle build.gradle(.kts) build
Mix mix.exs _build, deps
Composer composer.json vendor
Misc. bin, build, dist bin, build, dist

*dir for go projects is the name of the project directory

Commit count: 121

cargo fmt