HTML
CSS
PHP
Deno
Examples
Do It Yourself
Blog
Code
Input
Run
const file_path = 'intro.txt' // Deno remove file and folder recursively asynchronous (non-block) await Deno.remove(file_path,{"recursive": true}); // Deno remove file and folder recursively synchronous (blocking way) Deno.removeSync(file_path,{"recursive": true}));
Related Chapters
Deno File Handling
Related Examples
Deno Example Write File With writeTextFile()
Deno Example Read File with readFileSync()
Deno Example Write File With writeTextFileSync()
Deno Example Write File With writeFileStr() and writeFileStrSync()