UNPKG

299 BMarkdownView Raw
1# removeSync(path)
2
3Removes a file or directory. The directory can have contents. Like `rm -rf`.
4
5- `path` `<String>`
6
7## Example:
8
9```js
10const fs = require('fs-extra')
11
12// remove file
13fs.removeSync('/tmp/myfile')
14
15fs.removeSync('/home/jprichardson') // I just deleted my entire HOME directory.
16```