Skip to content
Delete files and directories
Branch: master
Clone or download
Latest commit 2a63a03 Jun 28, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig ES2015ify and require Node.js 4 May 9, 2017
.gitattributes
.gitignore init Dec 6, 2015
.travis.yml
cli.js ES2015ify and require Node.js 4 May 9, 2017
license Meta tweaks Jun 27, 2017
package.json 1.1.0 Jun 27, 2017
readme.md ES2015ify and require Node.js 4 May 9, 2017
test.js

readme.md

del-cli Build Status

Delete files and directories

Useful for use in build scripts and automated things.

Note that this does permanent deletion. See trash-cli for something safer.

Install

$ npm install --global del-cli

Usage

$ del --help

  Usage
    $ del <path|glob> …

  Options
    -f, --force    Allow deleting the current working directory and outside
    -d, --dry-run  List what would be deleted instead of deleting

  Examples
    $ del unicorn.png rainbow.png
    $ del '*.png' '!unicorn.png'

Since $ del is already a builtin command on Windows you need to use $ del-cli there.

Related

  • del - API for this module
  • trash-cli - Move files and directories to the trash
  • make-dir-cli - Make directories and their parents if needed

License

MIT © Sindre Sorhus

You can’t perform that action at this time.