You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the General Data Protection Regulation (GDPR), it is mandatory to delete users personal data after a defined period.
Lifespans can also be defined for data other than users personal data.
Fortunately, setting up data lifespan can be done automatically without having to manually purge obsolete data.
Many database management systems, such as MongoDB, AWS DynamoDB, Redis, or Oracle, allow you to define a "TTL" (Time To Live) on a table or a, item. After defining a lifespan, expired data will be purged and permanently erased from database.
Example
In this Java example on an Oracle database, the data expires after 5 days.