Delete delete = new Delete(Bytes.toBytes(subscription.getUser()));
delete.deleteColumns(SUBSCRIPTION_CF, Bytes.toBytes(subscription.getMailbox()));
subscriptions.delete(delete);
subscriptions.close();
} catch (IOException e) {
throw new SubscriptionException(e);
} finally {
if (subscriptions != null) {
try {
subscriptions.close();
} catch (IOException ex) {
throw new SubscriptionException(ex);
}
}
}
}