February 4, 2021Databasekokchoon delete from {TABLE} where {DATE} < DATEADD(day, -30, GETDATE()) replace {TABLE} with the target table name replace {DATE} with the date field.