@Override
    public synchronized void destroy() {
        if (id < 0) {
            throw new IllegalStateException("Negative segment ID indicates a reserved segment, "
                + "which should not be destroyed. Reserved segments are cleaned up only when "
                + "an entire store is closed, via the close() method rather than destroy().");
        }

        final Bytes keyPrefix = prefixKeyFormatter.getPrefix();

        // this deleteRange() call deletes all entries with the given prefix, because the
        // deleteRange() implementation calls Bytes.increment() in order to make keyTo inclusive
        physicalStore.deleteRange(keyPrefix, keyPrefix);
    }
This "logical segment" is a segment which shares its underlying physical store with other
logical segments. Each segment uses a unique, fixed-length key prefix derived from the
segment ID when writing to the shared physical store. In other words, a logical segment
stores a key into a shared physical store by prepending the key with a prefix (unique to
the specific logical segment), and storing the combined key into the physical store.
streams/src/main/java/org/apache/kafka/streams/state/internals/LogicalKeyValueSegment.java