deleteStore( successCallback, errorCallback ) method

This function deletes a store that has been created with EncryptedStorage.

This allows for the creation of a new store with the same name and a different password.

Syntax

<static> deleteStore( successCallback, errorCallback )

Parameters

Name Type Description
successCallback sap.EncryptedStorage~successCallback If successful, the successCallback is invoked with no parameters.
errorCallback sap.EncryptedStorage~errorCallback If there is an error, the errorCallback is invoked with an ErrorInfo object as the parameter.

Example

var successCallback = function() {
   alert("Store deleted!");
}
var errorCallback = function(error) {
   alert("An error occurred: " + JSON.stringify();
}
ks = new sap.EncryptedStorage("storename", "password");
ks.deleteStore(successCallback, errorCallback);

Source

encryptedstorage.js, line 260.