mirror of
https://github.com/bakustarver/rpgmakermlinux-cicpoffs.git
synced 2025-07-04 15:45:18 +02:00
17 lines
335 B
Markdown
17 lines
335 B
Markdown
![]() |
# removeSync(path)
|
||
|
|
||
|
Removes a file or directory. The directory can have contents. If the path does not exist, silently does nothing.
|
||
|
|
||
|
- `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.
|
||
|
```
|