If you need to delete rows or reset data in columns older than X days using MySQL, then there is an easy way to do it: Deleting Rows from your table X days old: DELETE FROM mytable WHERE recorededDate < DATE_SUB(NOW(), INTERVAL 25 DAY); Resetting Columns from your table X days old: UPDATE mytable SET […] ↓ Read the rest of this entry…