Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
final WriteTransaction transaction = databroker.newWriteOnlyTransaction();
transaction.delete(LogicalDatastoreType.CONFIGURATION, flowIID);
CheckedFuture<Void, TransactionCommitFailedException> future = transaction.submit();
try {
future.checkedGet();
} catch (TransactionCommitFailedException e) {
LOG.warn("Failed to delete {} ", path, e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment