Skip to content

$fn.deleteFile(path)

Deletes files in the specified path. "asynchronous"

Arguments

NameTypeDescription
pathstringPath of the file to be deleted

Return value

None

Sample

try {
await $fn.deleteFile('/note.txt');
} catch (err) {
console.log("Error", err);
}