NodefsrmdirSyncfunction rmdirSync#rmdirSync(path: PathLike,options?: RmDirOptions,): voidSynchronous rmdir(2). Returns undefined. Using fs.rmdirSync() on a file (not a directory) results in an ENOENT error on Windows and an ENOTDIR error on POSIX. To get a behavior similar to the rm -rf Unix command, use rmSync with options { recursive: true, force: true }. Parameters ##path: PathLikeoptional#options: RmDirOptionsReturn Type #void
function rmdirSync#rmdirSync(path: PathLike,options?: RmDirOptions,): voidSynchronous rmdir(2). Returns undefined. Using fs.rmdirSync() on a file (not a directory) results in an ENOENT error on Windows and an ENOTDIR error on POSIX. To get a behavior similar to the rm -rf Unix command, use rmSync with options { recursive: true, force: true }. Parameters ##path: PathLikeoptional#options: RmDirOptionsReturn Type #void