Public
Like
statusAutoMente
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v30View latest version
For the free plan, SQLite has a capacity of 10MB.
Therefore, you need to work on the deletion of unwanted data on a regular basis.
This Val deletes SQLite data that is never used by the Status Val.
This Val is deleting SQLite data. Please understand what this means and remix.
Remix this Val. That's it!
This Val assumes that you are using the default cron interval of 15 minutes.
If you have set the cron interval for a long time, the number of rows deleted will increase.
You need to set the value of '-3 days' to a larger number of days.
Enter the following SQL command from SQLite Management and check that there is no output (Default: Every 15 minutes):
select * from uptime where timestamp < datetime('now', '-3 days');