protected void removeAndDeleteSnapshot(long snapshotOffset) throws IOException {
        SnapshotFile snapshotFile = snapshots.remove(snapshotOffset);
        if (snapshotFile != null) snapshotFile.deleteIfExists();
    }
Removes the producer state snapshot file metadata corresponding to the provided offset if it exists from this
ProducerStateManager, and deletes the backing snapshot file.
storage/src/main/java/org/apache/kafka/storage/internals/log/ProducerStateManager.java