📅  最后修改于: 2022-03-11 15:03:44.139000             🧑  作者: Mango
const fsPromises = require('fs').promises
// For ES syntax: import { promises as fsPromises } from 'fs'
const directory = 'your/directory/path/here'
await fsPromises.rmdir(directory, {
recursive: true
})