I want to delete all the rows with timestamp older than 180 days from a specific table in my database.
I\'ve tried the this:
DELETE FROM on_search WH
DELETE FROM on_search WHERE search_date < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 180 DAY))