# del: 6.3 out of 10

Reasonable, with limits. 6th of 9 in [Globs and file watching](https://elestia.ai/opensource/files/index.md).

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

- **Overall: 6.3** (likely 5.3 to 7.4)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (7.1): 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.
- **Needed by many: 4.1** (likely 3.0 to 5.2)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (4.1): 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.
- **Helps a lot: 7.5** (likely 6.5 to 8.6)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (8.0): 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.
- **Holds up over time: 6.3** (likely 5.1 to 8.0)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.6): 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.
- **Used widely: 6.5** (likely 5.2 to 7.9)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.9): 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.
- **Vouched for: 4.8** (likely 3.5 to 6.5)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (5.5): 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.
- **Safe: 6.9** (likely 5.7 to 8.0)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (6.7): 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.

## 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

- Downloads, 4 weeks: 60M
- In a year: +8%
- GitHub stars: 1.3k
- Commits, 12 months: 22
- Last npm release: Oct 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/sindresorhus/del
- npm: https://www.npmjs.com/package/del

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
