MobileCRM.Application.deleteFile - Resconet/JSBridge GitHub Wiki

Asynchronously deletes the file from the application local data.

Arguments

Argument Type Description
path String Defines the relative path of the file in the application local data.
success function(result) A callback function which is called in case of successful asynchronous result.
failed function(error) A callback function for command failure. The error argument will carry the error message.
scope A scope for calling the callbacks; set "null" to call the callbacks in global scope.

This example demonstrates how to delete an application storage file.

MobileCRM.Application.deleteFile("TestData/MyFile.txt", function (res) {
	MobileCRM.bridge.alert("File was deleted");
}, function () {
	MobileCRM.bridge.alert("File wasn't deleted");
});
⚠️ **GitHub.com Fallback** ⚠️