boolean shouldRemoveDirectory(PartitionId partitionId, BlobStore store, Exception startException) {
    if (store.isInitialized() || stoppedReplicas.contains(partitionId.toPathString())) {
      return false;
    }
    StoreException storeException = getRootCause(startException, StoreException.class);
    return storeException != null && recoverableStoreErrorCodes.contains(storeException.getErrorCode());
  }
Return true when we should wipe out the directory of the given blob store.
@param partitionId The partition id of the blob store.
@param store The blob store
@param startException The exceptions thrown by blobstore.start method.
@return
ambry-store/src/main/java/com/github/ambry/store/DiskManager.java