rmrec Uses fs API to delete a folder recursively instead of rm or rd to support cross-platform build.