del
Reasonable, with limits. 6th of 9 globs and file watching.
del deletes files and folders that match glob patterns. It has safe defaults, a dry-run mode and a promise API, and v9.0.1 shipped in October 2026. It is well built and still maintained, but its use is flat while its peers grow. On Node 22 and later, the built-in fs.glob plus fs.rm, or rimraf, covers most of the same cleanup with fewer dependencies.
Best for: Build scripts that must delete many glob patterns with exclusions, and that want guards against deleting outside the working directory.
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
del is a careful, maintained tool for deleting files by glob, and its v9 safety work is good. For a new project, fs.rm with fs.glob on Node 22, rimraf, or fs-extra's remove covers most needs with fewer dependencies. Its flat download trend shows that few people pick it today. It remains a fair choice when you need multi-pattern deletes with exclusions and guards.
- npm download ratio: 1.08x against a 4.1x median.
- github.com/sindresorhus/del/releases: Active releases with safety improvements.
- npm-compare.com/del,fs-extra,rimraf: Alternatives cover simple deletes.
GPT-6.2 Sol: 7.1, likely 6.0 to 8.2
del earns its place in a new Node.js cleanup script when the deletion depends on patterns, exclusions, and a preview. Node's fs.rm is simpler for fixed paths, and rimraf offers more deletion strategies for difficult directory trees. Slow relative growth, a concentrated release history, and limited independent evidence on version 9 keep the recommendation focused.
- github.com/sindresorhus/del/blob/v9.0.1/readme.md: Combines glob exclusions, preview, and default deletion guards.
- nodejs.org/docs/latest-v22.x/api/fs.html#fspromisesrmpath-options: Provides built-in recursive removal for fixed paths.
- github.com/isaacs/rimraf: Offers several removal strategies, including Windows-specific handling.
- github.com/sindresorhus/del/releases: Version 9 is recent, with public releases under one maintainer.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: Download growth trails the benchmark and every listed peer.
Needed by many4.1
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
Deleting files by pattern is a common chore in build and clean scripts. It is only one slice of the category, which also covers finding, watching and copying files. Many projects need only rm -rf of one folder, and fs.rm or rimraf already does that.
- npm-compare.com/del,fs-extra,rimraf: Positions del for pattern-based cleanup in build pipelines; fs.rm is enough for simple deletes.
- github description: Scope is deleting files and directories only.
GPT-6.2 Sol: 4.1, likely 3.0 to 5.3
Node.js is widely used, and selective cleanup comes up in build scripts and developer tools. del covers the deletion part of this category. The runtime survey gives context, while demand for glob-based deletion is less directly measured.
- 2025.stateofjs.com/en-US/other-tools/#runtimes: About 90% of respondents to the runtime question selected Node.js.
- github.com/sindresorhus/del/blob/v9.0.1/readme.md: The API focuses on deletion by glob.
- nodejs.org/docs/latest-v22.x/api/fs.html#fspromisesrmpath-options: Node.js already supports recursive removal of explicit paths.
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
The API is small and well documented. It supports multiple patterns, negation, dryRun, gitignore and onProgress, and it ships types. v9 made it safer: it checks every path before deleting, and it keeps folders that hold excluded paths. The readme admits limits around escaping glob characters and symlinks under concurrency, and plain fs.rm plus fs.glob covers simple cases.
- app.unpkg.com/del@9.0.1/files/readme.md: Options, safety guards and documented caveats.
- github.com/sindresorhus/del/releases: v9 safety improvements and Windows retries.
- npm hasTypes: Ships TypeScript types.
GPT-6.2 Sol: 8.0, likely 6.9 to 9.1
Version 9.0.1 gives JavaScript and TypeScript callers two well-documented functions, a dry run, and explicit exclusions. Version 9 fixed a long-standing complaint about preserving files inside a matched directory. The small typed API is easy for coding agents to use, but Windows path syntax and literal glob characters need care. Exclusions can require two directory scans, and independent performance evidence for this release is thin.
- github.com/sindresorhus/del/blob/v9.0.1/readme.md: Documents dry runs, Windows syntax, escaping, and the cost of exclusion scans.
- raw.githubusercontent.com/sindresorhus/del/v9.0.1/index.d.ts: Ships typed options, progress callbacks, and return values.
- github.com/sindresorhus/del/issues/51: Users reported confusing behavior when excluding nested files.
- github.com/sindresorhus/del/releases/tag/v9.0.0: Version 9 preserves directories that contain excluded paths.
Holds up over time6.3
Will it still be a good choice in two years?
Claude Opus 5.5: 6.0, likely 5.0 to 8.0
The project is active. It had 22 commits and 2 releases in the last year, and it has zero open issues and pull requests. It rests mostly on one maintainer who keeps many packages. Its major versions repeatedly break code (pure ESM, raised Node minimums, changed exclusion behaviour). Native Node APIs are slowly making this kind of wrapper less needed.
- github commitsLastYear / releasesLastYear: 22 commits and 2 releases in the last year.
- github openIssues: 0 open issues against 110 closed.
- github.com/sindresorhus/del/releases: v7 moved to pure ESM; v9 requires Node 22 and changes behaviour.
- Node.js fs.glob: Node 22 added a built-in glob, which reduces the need for wrappers.
GPT-6.2 Sol: 6.6, likely 5.1 to 8.0
The project logged 22 commits in the past year and shipped a major release and a same-day patch in October. Version 9 raised the minimum to Node.js 22 and changed exclusion behavior after a user issue had stood for years. Apache Camel's website build switched to Node's built-in removal after the earlier ESM change. Public releases are concentrated under one maintainer, and the funding link gives little indication of long-term support.
- github.commitsLastYear, github.releasesLastYear, github.latestRelease: 22 commits and two releases in the past year.
- github.com/sindresorhus/del/releases: Release history shows one recurring publisher and successive runtime changes.
- github.com/sindresorhus/del/issues/51: The nested exclusion issue was opened in 2016 and addressed in version 9.
- github.com/apache/camel-website/commit/7b7e858c32ea1144d652b6568b4648a257c4b022: The website build replaced del with fs.rm and cited the ESM transition.
- github.com/sindresorhus/del/blob/v9.0.1/package.json: The package links to the maintainer's GitHub Sponsors page.
Used widely6.5
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
About 60M downloads in 4 weeks, and ecosyste.ms counts 2.9M dependent repositories. Much of that likely comes from old gulp-era templates and transitive installs. Downloads grew only 1.08x in a year, against a 4.1x median, while rimraf and fs-extra grew about 2.4x. Its share of new projects is shrinking.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 59.9M against 55.3M, a ratio of 1.08.
- medianDownloadsRatio: The median is 4.1, so del is losing ground.
- dependents.repos: 2.89M dependent repos, a large and largely legacy base.
- bluesky posts / hackerNews stories: Zero posts and zero stories: little current attention.
GPT-6.2 Sol: 6.9, likely 5.3 to 8.7
ecosyste.ms found 2.89 million dependent repositories and 26,159 packages, with more tracked repositories than rimraf and fewer than globby. Four-week installs rose from 55.3 million to 59.9 million, or 1.08× year over year, below every listed peer and the 4.1× catalog median. That points to a falling share of installs, while repeat builds, indirect installs, and the age of existing dependents make fresh adoption hard to estimate.
- dependents.repos, dependents.packages: Large measured footprint across repositories and published packages.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: Installs grew about 8%, well below the catalog baseline.
- peers: Rimraf grew about 2.0× and globby about 1.56×.
Vouched for4.8
Who stands behind it being good?
Claude Opus 5.5: 4.0, likely 3.0 to 6.0
It has wide historical use in build scripts and is referenced by third-party comparison sites. I found no current independent benchmarks, survey data or frameworks that build on it, and no community discussion. The validation is mostly legacy popularity.
- npm-compare.com/del,fs-extra,rimraf: A third-party comparison recommends it for pattern-based cleanup.
- dependents.packages: 26k npm packages depend on it.
- hackerNews stories: No HN discussion.
GPT-6.2 Sol: 5.5, likely 4.0 to 7.0
Gulp uses del in its official ESM cleanup example, and Cocos Engine lists version 6 as a development dependency. That supports its use in build tooling. Evidence on version 9 from independent benchmarks, developer surveys, and downstream projects remains sparse.
- github.com/gulpjs/gulp#use-latest-javascript-version-in-your-gulpfile: Gulp's ESM example uses deleteAsync for its clean task.
- github.com/cocos/cocos-engine/blob/v3.8.9/package.json: The engine lists del 6 as a direct development dependency.
- stackoverflow.com/questions/35042545/deleting-files-in-a-gulp-task: Users report working cleanup tasks and upgrade friction after version 7.
Safe6.9
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It has no known advisories, an MIT licence, and safe defaults that refuse to delete outside the working directory. Against that, it pulls in 7 dependencies (globby and others). The Scorecard is 4.4, with zero for code review, branch protection, pinned dependencies and token permissions, and one maintainer controls publishing.
- advisories total: 0 advisories.
- scorecard score: 4.4, with weak checks on code review and branch protection.
- npm dependencies: 7 direct dependencies.
- app.unpkg.com/del@9.0.1/files/readme.md: Refuses to delete the cwd or paths outside it unless force is set.
GPT-6.2 Sol: 6.7, likely 5.3 to 8.0
del uses the permissive MIT license, and OSV lists zero advisories for the package. Version 9 checks all matched paths before deletion and strengthens the default boundary checks. Seven direct dependencies and a 4.4 OpenSSF Scorecard weigh against it, with zeroes for code review, branch protection, token permissions, and dependency pinning. The public release history shows one recurring publisher, and npm publishing controls are unclear.
- npm.license, npm.dependencies, advisories: MIT license, seven direct dependencies, and zero recorded advisories.
- scorecard.score, scorecard.checks: 4.4 overall, with weak repository controls and unscored packaging and signed releases.
- github.com/sindresorhus/del/releases/tag/v9.0.0: Version 9 validates matched paths up front and strengthens boundary checks.
- github.com/sindresorhus/del/releases: The same maintainer appears throughout the public release history.
Good
- Takes several glob patterns with negation, for example deleteAsync(['dist/**', '!dist/keep']), and returns the list of deleted paths.
- Safe defaults: it refuses to delete the working directory or anything outside it unless force is set, and it has a dryRun option.
- v9 checks every matched path before deleting anything, caps concurrency at 256 by default, and retries Windows EBUSY and EPERM errors.
- No known advisories, MIT licence, and bundled TypeScript types.
Bad
- Its use is flat: downloads grew about 1.08x in a year, against a median of 4.1x.
- v9 requires Node.js 22, and earlier majors moved to pure ESM and changed how exclusions work. Each forced code changes.
- It pulls in 7 dependencies, including globby, for a job that Node's built-in fs.glob and fs.rm now mostly cover.
- One maintainer does almost all the work, and the OpenSSF Scorecard is low (4.4), with no code review or branch protection.
The numbers
- npm downloads, 4 weeks
- 60M +8% in a year
- GitHub stars
- 1.3k
- Commits, 12 months
- 22
- npm version
- 9.0.1 Oct 2026
- Versions, 12 months
- 2
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 4.4 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (sindresorhus/del), npm (del), OSV and the OpenSSF Scorecard.