> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DynamoDB TTL

> This article explores the DynamoDB TTL feature, which automatically deletes expired items from your table to manage data lifecycle.

In this lesson, we explore the DynamoDB TTL (Time to Live) feature, which automatically manages data lifecycle by deleting expired items from your table.

To leverage this feature, you designate an attribute in your table (for example, "expiresAt") that contains a timestamp in epoch format. When the current time exceeds the timestamp stored in the "expiresAt" attribute, DynamoDB marks the corresponding item for deletion. The actual removal of the item typically occurs within 48 hours and is processed at no additional cost.

<Callout icon="lightbulb" color="#1CB2FE">
  Enabling DynamoDB TTL helps reduce storage costs and improves query performance by automatically purging outdated data.
</Callout>

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/aws-certified-developer-associate/module/a1267c00-fc48-4a9b-8d41-fd642fa743ea/lesson/317e1ead-e2bb-4ab7-ab2f-f8b955a86f4f" />
</CardGroup>
