TRUNCATE TABLE
то остается вариант такойDELETE FROM table_name
import datetime
days_diff = 2
date_limit = (datetime.datetime.now() - datetime.timedelta(days=days_diff)).strftime("%Y-%m-%d")
DELETE FROM table_name WHERE strftime("%Y-%m-%d", created_at) <= date_limit