public boolean deleted() {
        return !log.file().exists() && !offsetIndexFile().exists() && !timeIndexFile().exists() && !txnIndex.file().exists();
    }
Delete this log segment from the filesystem.
storage/src/main/java/org/apache/kafka/storage/internals/log/LogSegment.java