Skip to content

MobileCRM.Application.deleteDirectory

rescocrm edited this page May 15, 2023 · 8 revisions

Asynchronously deletes the empty directory from the application local data.

Arguments

Argument Type Description
path String Defines the relative path of the directory 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 folder.

MobileCRM.Application.deleteDirectory("TestData/MyFolder", function (res) {
	MobileCRM.bridge.alert("Folder was deleted");
}, function () {
	MobileCRM.bridge.alert("Folder wasn't deleted");
});

Clone this wiki locally