open_in_new
content_copy
DELETE FROM [dbo].[logs] WHERE date < DATEADD(DAY, -30, GETDATE())