Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delete folder with deno

// delete empty folder
await Deno.remove("./some_dir");
// delete non-empty folder
await Deno.remove("./some_dir", { recursive: true });
// delete empty folder sync
Deno.removeSync("./some_dir");
// delete non-empty folder sync
Deno.removeSync("./some_dir", { recursive: true });
 
PREVIOUS NEXT
Tagged: #delete #folder #deno
ADD COMMENT
Topic
Name
6+3 =