Created
January 22, 2022 10:12
-
-
Save brrd/7065dece8fd938f1e084c5494b6a071d to your computer and use it in GitHub Desktop.
Node 14 recursive rm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs/promises'; | |
async function main() { | |
await fs.rm(myDir, { recursive: true, force: true }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment