I have created a simple chatroom-like Apache Cordova (HTML) application that allows users to add their own messages with custom usernames in the chatroom.
The messages add up after a while and i have to go into the actual database to delete them every day to avoid clutter.
Is there any way i can create a rule or a javascript function to clear the data at a certain time every day? For instance at 9 am the database would clear all its content from the previous day and night and start the day fresh.
Thanks for the help.