Amazon DynamoDB now supports automatic item expiration with Time-to-Live (TTL)
Amazon DynamoDB Time-to-Live (TTL) enables you to automatically delete expired items from your tables, at no additional cost. Now, you no longer need to deal with the complexity and cost of manually scanning your tables and deleting the items that you don’t want to retain. Instead, you can simply specify an attribute containing the timestamp when each item in your table should expire and DynamoDB will delete the items for you automatically. You can also view and archive items deleted via TTL using DynamoDB Streams.
TTL is useful for customers whose storage is growing rapidly and want to control their costs by either archiving or deleting items that they don’t wish to retain indefinitely. It is also helpful for customers who have contractual requirements around data retention and want to closely manage the data in their tables.
To learn more about using TTL for your tables, read our blog post and TTL Documentation.