Can I delete data records or shards from amazon Kinesis without deleting stream?

Kishore Kumar Korada picture Kishore Kumar Korada · Aug 23, 2014 · Viewed 17k times · Source

I know data records in Kinesis Stream will be deleted automatically in 24 hrs. But in my application when ever I write some data into stream, for the 2nd time if I want to write some other data, Data inserted first should be deleted. Please anyone help me since I am new to using AWS Kinesis Stream...I didn't get any help from Kinesis Service API...

Answer

mk-baku picture mk-baku · Sep 9, 2014

You can not delete previously inserted data from stream, but you can read data using KCL. KCL will create checkpoint every after one data slot read, so whenever you go for next slot of new data, KCL will read it from last checkpoint created in dynamodb table, so previously read data will be not included in next slot.