Method description:
Synchronized version of rmdir() .
If the return value is null or undefined, it means the deletion is successful, otherwise an exception will be thrown.
Grammar:
Since this method belongs to the fs module, the fs module needs to be introduced before use (var fs= require(“fs”) )
Receive parameters:
path Directory path
Example:
Source code: