Elestia Open Source Ratings
6.3

rimraf

Reasonable, with limits. 7th of 9 globs and file watching.

rimraf is the classic cross-platform `rm -rf` for Node. It is still maintained, and it works well as a CLI in npm scripts. In code, Node's built-in fs.rm with recursive and force now covers most uses without adding a dependency. Pick rimraf mainly for the CLI, for glob or filter deletion, or for tricky Windows cleanup.

Best for: Projects that want a cross-platform `clean` command in npm scripts, or hard Windows deletions with retries, globs or filters.

GitHubnpm

Scores

Overall6.3

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 5.5, likely 4.5 to 6.5

It is a sound, maintained tool and still a fine pick for a cross-platform clean command in package.json. For deletes inside code, native fs.rm needs no dependency and is the better default, and fs-extra covers copying and deleting together. Repeated breaking majors and a single maintainer keep it out of the strong-pick range.

GPT-6.2 Sol: 7.0, likely 5.9 to 8.1

rimraf earns its dependency when you need a portable CLI, Windows-specific fallbacks, or deletion across several paths and patterns. Use Node’s fs.rm for routine removal of a known directory, and consider del when previewing matches or enforcing a working-directory boundary matters most. Recent maintenance supports choosing rimraf for its specialty, while concentrated release ownership and slower-than-baseline adoption temper the recommendation for new projects.

Needed by many4.7

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

Many projects need to delete build output, but only one part of this category's job is covered: deleting files. It does not find, watch or copy them. Since Node 14.14, fs.rm handles the plain case, so the real need is narrower: a cross-platform CLI and edge cases.

GPT-6.2 Sol: 4.3, likely 3.2 to 5.5

Recursive cleanup comes up in build scripts, CI, and Node.js tooling across many project types. The audience for a dedicated package is smaller because Node handles basic removal and rimraf’s pattern matching serves deletion. The runtime survey shows how common Node is, but it does not measure demand for a separate cleanup tool.

Helps a lot7.5

How well does it do the job for those who need it?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

It does its one job well. It picks a strategy for each platform, falls back to Windows retries and move-remove, and supports globs, filters, abort signals and preserve-root. Types ship with the package. For the common case, though, it mostly wraps native fs.rm, so it adds little beyond the CLI and Windows robustness.

GPT-6.2 Sol: 7.9, likely 6.8 to 9.0

Version 6.1.4 offers a typed API, clear CLI documentation, opt-in globs, and a Windows fallback for nonempty directories. del has stronger safeguards for pattern-heavy cleanup, including dry runs and a working-directory boundary. The current types and migration notes give coding agents a clear API to follow, though older examples use different imports and glob defaults. Performance evidence comes from a competing tool’s benchmark on one workload, and agent accuracy is unmeasured.

Holds up over time6.2

Will it still be a good choice in two years?

Claude Opus 5.5: 6.0, likely 4.5 to 7.5

Releases continue: 6.1.4 came out in November 2026, with 21 commits in the last year and only 6 open issues. It rests on one maintainer, and every major version broke callers. The ecosystem is slowly moving to built-in fs.rm.

GPT-6.2 Sol: 6.4, likely 5.1 to 7.5

The project shipped two npm updates and recorded 21 commits in the past year, with the latest patch published in November. Both recent tags came from the same maintainer, and the sponsorship link gives little insight into funding or who else can publish. An older path-handling issue remains open, and a recent downstream report asks for clearer guidance after major-version changes. Those gaps and migrations to built-in Node APIs make the two-year outlook less certain.

Used widely7.2

How many use it, and is that growing?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

Downloads are huge at about 848M per 4 weeks, and about 2M repositories depend on it. Much of that comes from old versions installed by other tools. Downloads grew 2.0x in a year, well below the 4.1x median, so it is losing share even while its totals stay large.

  • npm downloadsLast4Weeks: 847.9M now, against 425.1M a year ago: ratio 2.0, below the 4.1 median.
  • dependents repos: 1.98M repositories and 169k packages depend on it.
  • bluesky posts: Only 2 posts, neither about using it.

GPT-6.2 Sol: 7.3, likely 5.9 to 8.7

ecosyste.ms found about 1.98 million dependent repositories and 169,000 dependent packages, a substantial footprint that trails del and fs-extra on repository count. Downloads rose from 425 million to 848 million over comparable four-week periods, about 2.0× against the catalog median of 4.1×, so rimraf lost ground on the catalog’s growth measure. Automated builds and transitive installs, including older majors brought in by tools such as Gatsby, make the number of direct choices uncertain. The collected social mentions add little evidence of fresh adoption.

  • dependents repos, dependents packages: 1,981,265 repositories and 168,689 packages in the index.
  • npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: Downloads grew about 2.0× against a 4.1× baseline.
  • peers del dependentRepos, peers fs-extra dependentRepos, github stars: Both peers have more indexed dependent repositories, and rimraf has 5,858 stars.
  • hackerNews stories, bluesky top: Zero matched stories and two versions of the same off-topic post.
  • github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/package.json: Gatsby declares rimraf 3 as a dependency.
Vouched for6.5

Who stands behind it being good?

Claude Opus 5.5: 6.0, likely 4.0 to 7.0

It has a long record in countless build scripts and is written by the npm CLI's original author. There are no current independent benchmarks or survey data. A neutral ecosystem effort (e18e) now recommends replacing it, which pulls the score down.

  • dependents packages: 169k npm packages depend on it.
  • e18e.dev/docs/replacements/rimraf: e18e lists it as replaceable by native fs.rm or premove.
  • hackerNews stories: No recent Hacker News discussion.

GPT-6.2 Sol: 7.0, likely 5.8 to 8.1

Strapi declares rimraf 6, ng-packagr uses it in its build, and the Apache Airflow website merged an update to 6.1.4. Those are current choices by established projects, with much of the visible evidence coming from build and release workflows. There is little direct satisfaction data, and Panda’s migration shows that experienced teams can replace it for their own cleanup needs.

Safe6.9

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

No advisories ever, only two direct dependencies, and a permissive BlueOak-1.0.0 licence. The Scorecard is 4.9, with zeros for code review, branch protection and pinned dependencies, and one person publishes it. Its glob dependency brings in several transitive packages.

  • advisories total: 0 advisories.
  • scorecard score: 4.9; Code-Review, Branch-Protection and Pinned-Dependencies all score 0.
  • npm dependencies: 2 direct dependencies.
  • github license: BlueOak-1.0.0, a permissive licence.

GPT-6.2 Sol: 6.7, likely 5.4 to 7.9

rimraf has a permissive BlueOak-1.0.0 licence, two direct dependencies, and zero direct advisories in the supplied snapshot. Version 6.1.4 moved to a glob range that includes the fix for an October cancellation advisory and permits the November 14.0.6 security fix, though existing lockfiles can still pin affected glob versions. OpenSSF scored it 4.9, with zeroes for code review, branch protection, and dependency pinning, and npm artifact provenance remains unverified despite the signed source tag. The tagged API still resolves an empty path to the working directory, matching a user’s accidental-deletion report.

Good

  • The CLI works the same on Windows, macOS and Linux, so `rimraf dist` is safe to put in npm scripts.
  • Windows and move-remove strategies retry on EBUSY, EPERM and ENOTEMPTY errors that plain fs.rm can hit.
  • Supports globs, filter callbacks, abort signals and a preserve-root guard, and ships its own types.
  • No known advisories and only two direct dependencies, under a permissive BlueOak-1.0.0 licence.

Bad

  • For most in-code deletes, built-in fs.rm does the same job with no dependency, and e18e recommends switching to it.
  • Breaking changes in each major version: v4 moved to Promises, v5 removed the default export, v6 requires Node 20+. These broke projects such as node-tmp.
  • One person maintains and publishes it, and the repository has no branch protection or required code review.
  • Its glob dependency adds more transitive packages than a plain recursive delete needs.

The numbers

npm downloads, 4 weeks
848M +99% in a year
GitHub stars
5.9k
Commits, 12 months
21
npm version
6.1.4 Nov 2026
Versions, 12 months
2
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
4.9 out of 10, Nov 2026
Licence
BlueOak-1.0.0

Read on 21 November 2026 from GitHub (isaacs/rimraf), npm (rimraf), OSV and the OpenSSF Scorecard.

Globs and file watching

  1. 8.1tinyglobby
  2. 7.9chokidar
  3. 7.0glob
  4. 7.0@parcel/watcher
  5. 6.4globby
  6. 6.3del
  7. 6.3rimraf
  8. 6.1fast-glob
  9. 6.1fs-extra
Compare all 9 on six scores