private void deleteBlobFromLastCheckpoint(SnapshotIndex snapshotIndex) {
    LOG.debug("Deleting SnapshotIndex {} and all associated blobs", snapshotIndex);
    DirIndex dirIndex = snapshotIndex.getDirIndex();
    // deleted any blob - deleting first blob in the snapshot
    List<FileIndex> files = dirIndex.getFilesPresent();
    for (FileIndex file: files) {
      FileBlob blob = file.getBlobs().get(0);
      try {
        Files.move(Paths.get(blob.getBlobId()), Paths.get(blob.getBlobId() + "-DELETED")); // Delete the file
      } catch (IOException e) {
        throw new RuntimeException("Failed to delete file: " + blob.getBlobId(), e);
      }
    }
  }
Verifies the ledger for TestBlobStoreManager.
@param startingSnapshot snapshot file name and files present in snapshot at the beginning of verification (from previous run), if any.
@return Pair file for latest snapshot at time of verification
samza-test/src/test/java/org/apache/samza/storage/kv/BlobStoreStateBackendIntegrationTest.java