OS Manuals

/usr/lib/kafka/bin/kafka-delete-records

Community edition of Confluent Kafka.

From confluent-kafka 8.4.0.215-r1 (os), captured 2026-11-05 by running kafka-delete-records --help (exit 1). permalink

This tool helps to delete records of the given partitions down to the specified offset.
Option                                 Description
------                                 -----------
--bootstrap-server <String: server(s)  REQUIRED: The server to connect to.
  to use for bootstrapping>
--command-config <String: command      A property file containing configs to
  config property file path>             be passed to Admin Client.
--help                                 Print usage information.
--offset-json-file <String: Offset     REQUIRED: The JSON file with offset
  json file path>                        per partition. The format to use is:
                                       {"partitions":
                                         [{"topic": "foo", "partition": 1,
                                         "offset": 1}],
                                        "version":1
                                       }
--version                              Display Kafka version.
Options (5)
OptionDescriptionSource
--bootstrap-server String:REQUIRED: The server to connect to.help
--command-config String:A property file containing configs to config property file path> be passed to Admin Client.help
--helpPrint usage information.help
--offset-json-file String:REQUIRED: The JSON file with offset json file path> per partition.help
--versionDisplay Kafka version.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.