MySQL, Useful Code / May 17, 2017 Delete MySQL Records Older Than X Days DELETE FROM `tablename` WHERE timestampColumn < NOW() - INTERVAL 7 DAY ORDER BY `tablename`.`timestampColumn` DESC If you have a numeric timestamp then … [Read more...] about Delete MySQL Records Older Than X Days