Synchrounously deletes a file inside the application folder.

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

var success = Storage.deleteSync("uselessFile.txt");
if(success) {
    console.log("Deleted file");
}
else {
    console.log("An error occured!");
}

Warning: This call will block until the operation is finished.

Location

Namespace
Fuse.Storage
Package
Fuse.Storage 1.9.0

Returns

boolean

true if the file was deleted, false otherwise.