unstale

npm / del

del

What changed in del 3 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

17 breaking1 security1 new APIs and options3 behavior and defaults1 tooling7 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

del 916 changes

Breaking changes 5

  • Deletion refuses directories containing the process working directory and paths reached through symlinks outside cwd, unless force is set.

    9.0.0release notes

  • Negated paths inside matched directories are preserved, and the containing directories are kept while their other contents are deleted. Returned paths change accordingly.

    9.0.0release notes

  • del now requires Node.js 22.

    4.0.0, 9.0.0release notesrelease notes

  • The objectMode option has been removed from the types because del only returns paths.

    9.0.0release notes

  • The stats option has been removed from the types because del only returns paths.

    9.0.0release notes

Security 1

  • Every matched path is checked before any deletion begins, preventing partial deletion before an out-of-cwd path is refused.

    9.0.0release notes

Behavior and default changes 3

  • The default concurrency is now 256 deletions at a time instead of Infinity.

    9.0.0release notes

  • deleteAsync now waits for running deletions to finish before rejecting.

    9.0.0release notes

  • With gitignore enabled, .gitignore files from the repository root down to cwd now apply.

    9.0.0release notes

Fixes and other changes 7

  • The error message is corrected when deleting the directory specified by the cwd option.

    9.0.0release notes

  • deleteSync now respects the onProgress option.

    9.0.0release notes

  • A deletion is retried up to three times on temporary errors such as EBUSY and EPERM.

    9.0.0release notes

  • An undefined value no longer overrides the del default for expandDirectories.

    9.0.0release notes

  • An undefined value no longer overrides the del default for followSymbolicLinks.

    9.0.0release notes

  • An undefined value no longer overrides the del default for onlyFiles.

    9.0.0release notes

  • A path is no longer returned twice when patterns differ only by a trailing slash.

    9.0.0release notes

del 81 changes

Breaking changes 1

del 75 changes

Breaking changes 5

  • The default export was replaced with named exports.

    7.0.0release notes

  • Use the named deleteAsync export in place of require('del').

    7.0.0release notes

  • Use the named deleteSync export in place of require('del').sync.

    7.0.0release notes

  • Node.js 14 is now required to use the package.

    7.0.0release notes

  • The package is now pure ESM, so developers must use ESM imports rather than CommonJS require.

    7.0.0release notes

del 61 changes

Breaking changes 1

del 54 changes

Breaking changes 4

  • Paths containing backward slashes are no longer accepted; construct glob patterns with path.posix.join() or transform paths with slash.

    5.0.0release notes

  • The underlying globbing engine changed, so verify that del still behaves as expected before deleting real files.

    5.0.0release notes

  • The underlying globbing engine changed from glob to fast-glob, and almost all globby option names changed.

    5.0.0release notes

  • Node.js 8 is now required to run del.

    5.0.0release notes

del 41 changes

Tooling 1

del 32 changes

Breaking changes 1

New APIs and options 1