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