Asynchronously delete a file.

Example

var FileSystem = require("FuseJS/FileSystem");

FileSystem.delete("myfile.txt")
    .then(function() {
        console.log("Delete succeeded");
    }, function(error) {
        console.log("Unable to delete file");
    });

Location

Namespace
Fuse.FileSystem
Package
Fuse.FileSystem 1.9.0

Returns

Promise

A Promise of nothing