How to delete data in a table after some time like expiry time in cloud automatically?
TL;DR
The user wants to know how to automatically delete data from a table after a certain amount of time has passed, similar to an expiry time. Someone suggested using a function with a cron job to delete data based on the createdAt or updatedAt timestamp of the documents.
whataboutno13
25 Aug, 2023, 09:07
You could write a function with a cron job to delete the desired data based on the documents createdAt or updatedAt timestamp.