cleanup.policy

The topic property that chooses how old records are removed: delete by retention, compact by key, or both.

In more detail

The default, delete, applies retention.ms and retention.bytes. compact keeps the latest record per key instead.

Example

rpk topic create prices -c cleanup.policy=compact

Related terms

Taught in

References

Certification courses