Function getRemovedBuckets