delete records automatically after X days

hi

i have a dataset with lots of data.
to keep it clean - i want to delete old data.
so i have a field called datetodelete = contain a future date.
how can i automatically delete all records older than that date?
maybe when the page loads? or other idea?

Hello Martin,

My suggestion is to create a hidden page on your site that’s inaccessible and have an online service like Zapier run a task everyday that gets that pages url. On that pages URL you should do a search that searches for items that have the current date in their field: ‘dateToDelete’.

This way everything is automatic and hands free.

Goodluck,
Majd

Thanks .I did it on every page load. So it works good.