UNPKG

1.01 kBMarkdownView Raw
1# del-cli [![Build Status](https://travis-ci.org/sindresorhus/del-cli.svg?branch=master)](https://travis-ci.org/sindresorhus/del-cli)
2
3> Delete files and folders
4
5Useful for use in build scripts and automated things.
6
7*Note that this does permanent deletion. See [`trash-cli`](https://github.com/sindresorhus/trash-cli) for something safer.*
8
9
10## Install
11
12```
13$ npm install --global del-cli
14```
15
16
17## Usage
18
19```
20$ de --help
21
22 Usage
23 $ de <path|glob> [...]
24
25 Options
26 -f, --force Allow deleting the current working directory and outside
27 -d, --dry-run List what would be deleted instead of deleting
28
29 Examples
30 $ de unicorn.png rainbow.png
31 $ de '*.png' '!unicorn.png'
32```
33
34It's `de` and not `del`, since `del` is already a builtin command on Windows.
35
36
37## Related
38
39- [del](https://github.com/sindresorhus/del) - API for this module
40- [trash-cli](https://github.com/sindresorhus/trash-cli) - Move files and folders to the trash
41
42
43## License
44
45MIT © [Sindre Sorhus](http://sindresorhus.com)