TTL on records

I am creating a notifications entity and I would like these alerts to disappear after a certain period of time.

Any idea of how to go about setting a TTL on the entry, so that expired entries are deleted automatically.


This topic has been created from a Discord post (1248327375184334902) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

Anyone have a similar system in place?
I was thinking of creating CRON job that goes over these entities and deletes them after the TTL has expired.

That’s probably a good option

Yeah, if you go with cron through and you do any kind of horizontal scaling I’d look at the redcron strapi plugin

Thanks <@632956853122236457> and <@211722558385553408> for your input.