Hi I wanted to create a appwrite document that expires after a hour. Would that be possible that it automatically deletes it self at Appwrite itself? Or do I have to manually code this feuture and for loop each time to check if there are not expirations. Maybe queries would work to check for a certain time stamp. But it would be nice if it would be possible to use TTL
#Does appwrite support TTL
2 messages · Page 1 of 1 (latest)
I think, right now, the only way to achieve this is to create a function that runs every hour and checks for expired documents and deletes them.
There is a PR out to add that functionality to the function templates. But you should be fine to grap this code and make it your own function.
https://github.com/appwrite/templates/pull/238/files