private void deregisterHardDeleteMetric(String storeId) {
    String prefix = storeId + SEPARATOR;
    registry.remove(MetricRegistry.name(PersistentIndex.class, prefix + "CurrentHardDeleteProgress"));
    registry.remove(MetricRegistry.name(Log.class, prefix + "PercentageHardDeleteCompleted"));
    registry.remove(MetricRegistry.name(PersistentIndex.class, prefix + "HardDeleteThreadRunning"));
    registry.remove(MetricRegistry.name(PersistentIndex.class, prefix + "HardDeleteCaughtUp"));
  }
Deregister the HardDeleteMetric for given {@code store}.
@param storeId the {@link BlobStore} for which the HardDeleteMetric should be deregistered.
ambry-store/src/main/java/com/github/ambry/store/StoreMetrics.java