When you use Database Mail to send emails in SQL Server, you can use the sysmail_delete_log_sp
stored procedure to delete items from the event log.
You can choose to delete all events, events based on their logged date (i.e. before a certain date) or events based on the event’s type.
Continue reading