
Company News
Socket Has Acquired Secure Annex
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.
Delete files and folders and any intermediate directories if they exist (sync and async).
Delete files and folders and any intermediate directories if they exist (sync and async).
Install with npm
$ npm i delete --save
var del = require('delete');
// async
del('tmp/foo.md', function(err) {
if (err) console.log(err);
});
// sync
del.sync('tmp/foo.md');
// promise
del.promise('foo/bar/baz.txt')
.then(function() {
//=> do stuff
});
(The force option was inspired by [grunt].)
An error is thrown if you try to delete files outside of the current working directory (cwd).
Override the default behavior:
del.sync('../foo.md', {force: true});
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on July 09, 2015.
FAQs
Delete files and folders and any intermediate directories if they exist (sync and async).
The npm package delete receives a total of 8,494 weekly downloads. As such, delete popularity was classified as popular.
We found that delete demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.

Product
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.