Error: dynamodb ttl not deleting / erasing items

Rafal Wilinski

Answered by Rafal Wilinski

What's Causing This Error

You may run into this error for numerous reasons.

  1. TTL Disabled: The items will not get erased if TTL is disabled on the DynamoDB table.
  2. TTL attribute not defined: The TTL process ignores the item if the item does not contain the TTL attribute.
  3. Invalid TTL data type: If the item has the TTL attribute with a type other than Number, the TTL process ignores the item and does not delete it.
  4. Invalid TTL time format: If the item's TTL timestamp is not in UNIX Epoch Time Format, the TTL process will ignore and skip the item.

Solution - Here's How To Resolve It

There is no correct way to fix this error. However, you can try the following fixes and see which works for you.

  1. Enable TTL: Verify that TTL is enabled on the DynamoDB table.
  2. Verify TTL attribute: Ensure that the TTL attribute you put on your items is the same TTL attribute you defined when creating the table with TTL.
  3. Provide valid data: Ensure that the TTL attribute on the item has type Number and is in UNIX Epoch Time Format. Additionally, ensure that the TTL timestamp is not older than five years.

Dynobase is a Professional GUI Client for DynamoDB

Try 7-day free trial. No credit card needed.

Product Features

Member Portal
© 2024 Dynobase
Dynobase - DynamoDB Swiss Army Knife
Try Dynobase to accelerate your DynamoDB workflow. Start your 7-day free trial today.