Policy policy = getPolicyById(policyId);
String authToken = cachingTableAuthIdToAuthToken.get(authId);
if (authToken == null)
throw new InvalidIDException("An Authorization with that ID [" + authId + "] doesn't exist");
Auth auth = cachingTableAuth.get(authToken);
if (auth == null)
throw new InvalidIDException("An Authorization with that token doesn't exist");
QuotaRLBucket pAuthIds = getBucketWithIdForPolicy(policy, bucketId);
if(pAuthIds == null) {
throw new InvalidIDException("A Bucket with that ID [" + bucketId + "] doesn't exist for this Policy [" + policyId + "]");
}
// Remove auth from the bucket
pAuthIds.getAuthIds().remove(auth.getId());
cachingTablePolicy.set(policy.getId(), policy);