This will show what data will be deleted if you proceed.
Retention Period: 30 days
Cut-off Date: 2026-03-04 15:43:36
| Table | Records | Action |
|---|---|---|
| json_backup | 0 records | DELETE WHERE backup_timestamp < 2026-03-04 15:43:36 |
| getdata_logs | 0 records | DELETE WHERE waktu_mulai < 2026-03-04 15:43:36 |
| sensor_weather_data | 0 records | DELETE WHERE received_at < 2026-03-04 15:43:36 |
| sensor_node_data | 0 records | DELETE WHERE received_at < 2026-03-04 15:43:36 |
| node_logs | 0 records | DELETE WHERE waktu < 2026-03-04 15:43:36 |
| TOTAL | 0 records |
There are no records older than 30 days to delete.
All data is within the retention period.
Change retention period:
30 Days60 Days90 Days180 DaysAdd this to your crontab to run cleanup weekly:
# Run every Sunday at 2 AM 0 2 * * 0 php /home/surn4175/public_html/api_v2/cleanup.php days=90 confirm=yes >> /home/surn4175/public_html/api_v2/cleanup.log 2>&1
Or via web:
0 2 * * 0 curl "https://mail.suratuniku.my.id/api_v2/cleanup.php?days=90&confirm=yes" >> cleanup.log 2>&1