@Override
public void removeBucket(String policyId, String bucketId) throws IllegalArgumentException {
Policy policy = getPolicyById(policyId);
QuotaRLBucket pAuthIds = getBucketWithIdForPolicy(policy, bucketId);
if(pAuthIds == null) {
throw new InvalidIDException("A Bucket with that ID [" + bucketId + "] doesn't exist for this Policy [" + policyId + "]");
}
// Iterating over Auth Ids in the bucket to remove policy from the auth
for(String authId : pAuthIds.getAuthIds()) {
String authToken = cachingTableAuthIdToAuthToken.get(authId);
if (authToken == null)
continue;