Synchronous version of remove. Removes a file or directory at the specified path.
remove
The absolute path of the file or directory to remove.
A VoidIOResult indicating success or failure.
VoidIOResult
remove for the async version.
1.1.0
removeSync('/path/to/file-or-directory') .inspect(() => console.log('Removed successfully')); Copy
removeSync('/path/to/file-or-directory') .inspect(() => console.log('Removed successfully'));
Synchronous version of
remove. Removes a file or directory at the specified path.