Synchronous version of emptyDir. Removes all contents of a directory.
emptyDir
The absolute path of the directory to empty.
A VoidIOResult indicating success or failure.
VoidIOResult
emptyDir for the async version.
1.1.0
emptyDirSync('/path/to/directory'); Copy
emptyDirSync('/path/to/directory');
Synchronous version of
emptyDir. Removes all contents of a directory.