public void removeBucketIndexes(PartitionedRegion prRegion) throws QueryException {
    IndexManager parentManager = prRegion.getIndexManager();
    if (parentManager != null) {
      for (final Object o : indexes.values()) {
        Index bucketIndex = (Index) o;
        Index prIndex = parentManager.getIndex(bucketIndex.getName());
        if (prIndex instanceof PartitionedIndex) {
          ((PartitionedIndex) prIndex).removeFromBucketIndexes(region, bucketIndex);
        }
      }
    }
  }
Removes indexes for a destroyed bucket region from the list of bucket indexes in the
{@link PartitionedIndex}.

@param prRegion the partition region that this bucket belongs to
geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexManager.java