1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 05:10:05 +02:00
Files
gitlit/node_modules/fs-extra/docs/remove-sync.md
2018-06-03 13:57:23 +02:00

17 lines
299 B
Markdown

# 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.
```