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
1// async
2await Deno.remove("./file.txt");
3// sync
4Deno.removeSync("./file.txt");