NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2216 most downloaded on npm
Delete files and directories
Last release 1 years ago
18 Sep 2025
Release timing varies
gaps range from 8 days to 1.6 years
Some releases are documented
notes for 14 of 29 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
29 releases · first in 2014
Internal changes. v8.0.0...v8.0.1
Require Node.js 18 (#161) e2e5b71
One column per quarter.
Add path to onProgress event (#155) f5d31e6
path to onProgress event (#155) f5d31e6Require Node.js 14 (#143) 106d7d8
Fix ProgressData#deletedCount (#142) 7b4c881
ProgressData#deletedCount (#142) 7b4c881Add onProgress option (#141) 8742649
onProgress option (#141) 8742649Breaking Require Node.js 10 6c99805 Improvements Update dependencies 6c99805 v5.1.0...v6.0.0
Allow non-glob patterns with backslash on Windows (like v4) (#100) 01da91f
Enhancements:
Fixes:
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.Fix missing TypeScript import 0361dcc
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
Your coding agent can read these notes before it upgrades. Set up the MCP server →