Deletes the specified vault from on-device storage.
Note: When you have a shared data vault, if
one application deletes the vault, the data vault is no longer accessible in the
other application.
If the vault does not exist, this method throws an
exception. The vault need not be in the unlocked state, and can be deleted even if the
password is unknown.
Syntax
public static void deleteVault(String name)
Parameters
name – the vault name.
Examples
Delete a data vault – deletes a data vault called myVault.
if (DataVault.vaultExists("myVault"))
{
DataVault.deleteVault("myVault");
}