Imagine that [table] has [column] with the date of the post got inserted:
SET GLOBAL event_scheduler = ON;
CREATE
EVENT 'archive_posts'
ON SCHEDULE EVERY 1 WEEK
DO
DELETE FROM [table] WHERE [column] < DATE_SUB(NOW(), INTERVAL 1 WEEK);