NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #2216 most downloaded on npm
Delete files and directories
Latest stable
9.0.1
Last release 1 months ago
08 Oct 2026
Release timing varies
gaps range from 8 days to 1.6 years
Some releases are documented
notes for 16 of 31 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
31 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
https://github.com/sindresorhus/del/compare/v9.0.0...v9.0.1
https://github.com/sindresorhus/del/compare/v9.0.0...v9.0.1
With gitignore: true, the .gitignore files from the Git repository root down to cwd now apply too.
gitignore: true, the .gitignore files from the Git repository root down to cwd now apply too.deleteSync(['dist', '!dist/keep']) now keeps dist/keep and deletes the rest of dist. Before, it deleted all of dist. This also applies to paths excluded by the ignore, gitignore, ignoreFiles, and globalGitignore options. Learn morecwd, unless force is set d682fb1 2183e81objectMode and stats options from the types, as del only returns paths c6d8727concurrency to 256 deletions at a time by default, instead of Infinity (#60) d385067
cwd was only refused after other paths were already deleted.EBUSY and EPERM, which occur on Windows 2183e81cwd option c6d8727deleteSync ignoring the onProgress option ca02fc3deleteAsync wait for running deletions to finish before it rejects (#98) dd78adbcwd option a27329dundefined value for expandDirectories, onlyFiles, or followSymbolicLinks overriding the del defaults cbf1ce1A negation inside a matched directory now protects that path. Before, you had to also exclude the parent directories:
-deleteSync(['public/assets/**', '!public/assets', '!public/assets/goat.png']);
+deleteSync(['public/assets/**', '!public/assets/goat.png']);
The returned paths change accordingly: deleteSync(['dist', '!dist/keep']) returns dist/other instead of dist.
https://github.com/sindresorhus/del/compare/v8.0.1...v9.0.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
https://github.com/sindresorhus/del/compare/v8.0.0...v8.0.1
https://github.com/sindresorhus/del/compare/v8.0.0...v8.0.1
Require Node.js 18 (#161) e2e5b71
https://github.com/sindresorhus/del/compare/v7.1.0...v8.0.0
Add path to onProgress event (#155) f5d31e6
path to onProgress event (#155) f5d31e6https://github.com/sindresorhus/del/compare/v7.0.0...v7.1.0
Require Node.js 14 (#143) 106d7d8
require('del') → import {deleteAsync} from 'del'require('del').sync → import {deleteSync} from 'del'https://github.com/sindresorhus/del/compare/v6.1.1...v7.0.0
Fix ProgressData#deletedCount (#142) 7b4c881
ProgressData#deletedCount (#142) 7b4c881https://github.com/sindresorhus/del/compare/v6.1.0...v6.1.1
Add `onProgress` option (#141) 8742649
onProgress option (#141) 8742649https://github.com/sindresorhus/del/compare/v6.0.0...v6.1.0
https://github.com/sindresorhus/del/compare/v5.1.0...v6.0.0
https://github.com/sindresorhus/del/compare/v5.1.0...v6.0.0
Allow non-glob patterns with backslash on Windows (like v4) (#100) 01da91f
Enhancements:
Fixes:
cwd option (#96) ffbf4c4https://github.com/sindresorhus/del/compare/v5.0.0...v5.1.0
Shoutout to @chrisblossom for doing most of the work on this release 🙌
This release changes the underlying globbing engine, so you are strongly recommended to use the dryRun option to ensure del still does what you expect
This release changes the underlying globbing engine, so you are strongly recommended to use the dryRun option to ensure del still does what you expect before you run it on the real files.
Breaking:
path.posix.join() instead of path.join(). You can use slash to transform backward-slash paths to forward-slash paths.globby options, please note that globby switched from using the glob package to fast-glob, so almost all the option names changed. Here's how to migrate the options.https://github.com/sindresorhus/del/compare/v4.1.1...v5.0.0
Fix missing TypeScript import 0361dcc
For TypeScript users only:
https://github.com/sindresorhus/del/compare/v4.1.0...v4.1.1
Refactor TypeScript definition to CommonJS compatible export (#82) 3f0d604
https://github.com/sindresorhus/del/compare/v4.0.0...v4.1.0
Add TypeScript definition (#81) 34c771e
Breaking:
Enhancements:
https://github.com/sindresorhus/del/compare/v3.0.0...v4.0.0
Drops support for Node.js 0.10 and 0.12.
concurrency option.https://github.com/sindresorhus/del/compare/v2.2.2...v3.0.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
The API now returns a promise instead of accepting a callback function.
The API now returns a promise instead of accepting a callback function.
Update your code accordingly:
var del = require('del');
- del('unicorn.png', function (error, paths) {
+ del('unicorn.png').then(function (paths) {
console.log('Deleted files/folders:\n', paths.join('\n'));
});
And with gulp:
var gulp = require('gulp');
var del = require('del');
- gulp.task('clean', function (cb) {
- del('unicorn.png', cb);
+ gulp.task('clean', function () {
+ return del('unicorn.png');
});
gulp.task('default', ['clean']);
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.