IO.delete

Deletes the specified folder or file.

If a folder is specified, deletes all the files in the folder, including sub-directories.

IO.delete(filepath);

Arguments

path. (string) The absolute path of the folder or file.

Return value

A promise that is fulfilled with undefined upon success.

Example

Copy code
(async ()=>{
    await IO.delete("file_path");
})();