Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CHLibrarian/d79579c843e532532490 to your computer and use it in GitHub Desktop.
Save CHLibrarian/d79579c843e532532490 to your computer and use it in GitHub Desktop.
ContextHub Application Services Vault Item Delete (Android)
// Deleting a vault item
final String id = "B89ECE55-9A3B-4998-AD58-2927F99802B7";
VaultProxy<Person> proxy = new VaultProxy<Person>();
proxy.deleteDocument(id, new Callback<Object>() {
@Override
public void onSuccess(Object result) {
Log.d(TAG, String.format("Successfully deleted item id %s", id));
}
@Override
public void onFailure(Exception e) {
Log.d(TAG, e.getMessage());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment