fs-force-delete-sync
Requirements
- Node >= 6.0.0
Usage
var rmSync = ;try let info = ; console; catch error console;
The code above would check for 'foo'
existence,
- If
'foo'
doesn't exist,rmSync
does nothing - If
'foo'
is a file,rmSync
would deletes that file - If
'foo'
is a directory,rmSync
would recurs itself with children of'foo'
and then deletes'foo'