Hey Wix Team, Wix Code Community,
How to delete a the items in a database automatically after a certain time of its creation .
When the user inputs the data to a form, he can choose when to delete the data from the database automatically using a date picker (maximum 3 months from current date). So that the database will be rid of old data and the user need not bother about it as after 3 months or after the user selected date, it gets automatically deleted.
I have read this post and comment from @Yisrael . But in that code, the admin must go to the page everyday to delete the contents (now the code is deleting all data but i know how to delete it based on date by comparing the dates ).
What I Want:
What I want is automatic deletion (from all the databases in my website )without admin doing anything. Is there any way to achieve this? Maybe using hooks? or any other way which removes the manual work and doesn't impact on site load speed or database access speed.