I would like to write a query to clear any SQL Server logs older than 4 days. This is the folder of the SSMS I'm referring to:
Asked
Active
Viewed 248 times
0
-
What have you tried already? Have a look at ["How do I ask a good question?"](http://stackoverflow.com/help/how-to-ask) and check whether you think your question fits the format for StackExchange. – 3N1GM4 Jan 06 '17 at 10:31
-
Well... I wouldn't do it by date since the "Current" error log could span multiple days so why not just recycle aka limit the number of error logs stored and / or limit the max size of the individual error log? – S3S Jan 06 '17 at 14:10