delete folder with deno

Solutions on MaxInterview for delete folder with deno by the best coders in the world

showing results for - "delete folder with deno"
Emily
04 Apr 2019
1// delete empty folder
2await Deno.remove("./some_dir");
3// delete non-empty folder
4await Deno.remove("./some_dir", { recursive: true });
5// delete empty folder sync
6Deno.removeSync("./some_dir");
7// delete non-empty folder sync
8Deno.removeSync("./some_dir", { recursive: true });
9
Paolo
21 Jan 2016
1// async
2await Deno.remove("./file.txt");
3// sync
4Deno.removeSync("./file.txt");
similar questions
queries leading to this page
delete folder with deno