public boolean deleteIfExists() throws IOException {
        closeHandler();
        return Files.deleteIfExists(file.toPath());
    }
Delete this index file.

@throws IOException if deletion fails due to an I/O error
@return `true` if the file was deleted by this method; `false` if the file could not be deleted because it did
        not exist
storage/src/main/java/org/apache/kafka/storage/internals/log/AbstractIndex.java