Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

fs-rmdir-recursive

wangsijie4MIT1.0.0

Remove a directory and its entire files, using fs.rmdirSync and fs.unlinkSync

fs, rmdir, recursive, unlink

readme

fs-rmdir-recursive

Remove a directory and its entire files, using fs.rmdirSync and fs.unlinkSync.

Using fs.rmdirSync or fs.rmdir only, you can't delete a not empty folder.

Install

npm i fs-rmdir-recursive

Usage

const rmdir = require('fs-rmdir-recursive');

rmdir('path/to/be/remove');

console.log('success!')