This section describes how to delete messages on the console.
Deleted messages cannot be recovered.
Before deleting a message, set the auto.offset.reset parameter in the code of consumption. auto.offset.reset specifies the consumption policy of a consumer when there is no initial offset in Kafka or the current offset does not exist (for example, the current offset has been deleted). Options:
If this parameter is set to latest, the producer may start to send messages to new partitions (if any) before the consumer resets to the initial offset. As a result, some messages will be lost.
Select the region where your Kafka instance is located.
Parameter |
Description |
---|---|
Partition |
Select the ID of the partition where the message is located. |
Offset |
Enter the offset. Data before this offset will be deleted. NOTE:
|
To delete messages from multiple partitions, click Add Partition and specify the partition and offset for the messages to be deleted. 10 partitions can be deleted at most at a time.