private void deregisterIndexGauges(String storeId) {
    String prefix = storeId + SEPARATOR;
    registry.remove(MetricRegistry.name(Log.class, prefix + "CurrentCapacityUsed"));
    registry.remove(MetricRegistry.name(Log.class, prefix + "PercentageUsedCapacity"));
    registry.remove(MetricRegistry.name(Log.class, prefix + "CurrentSegmentCount"));
    registry.remove(MetricRegistry.name(Log.class, prefix + "CurrentInvalidDataSize"));
    registry.remove(MetricRegistry.name(Log.class, "ByteBufferForAppendTotalCount"));
    registry.remove(MetricRegistry.name(Log.class, "UnderCompaction" + SEPARATOR + "ByteBufferForAppendTotalCount"));
    indexes.remove(storeId);
  }
Deregister the IndexGauges for given {@code store}.
@param storeId the {@link BlobStore} for which the IndexGauges should be deregistered.
ambry-store/src/main/java/com/github/ambry/store/StoreMetrics.java