Back

Auto delete data after some time

  • 0
  • Databases
  • Flutter
  • Cloud
Prateek Jain
25 Aug, 2023, 08:54

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.

joeyouss
25 Aug, 2023, 14:01
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more