Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Vacuuming removes older event and notification data from the application database. For more information about the vacuuming process, see Configuring Data Removal.
The vacuuming process runs daily at the specified times for the specified duration.
Vacuuming schedules cannot overlap. If schedules overlap, Notification Services stops the earlier vacuuming process before the later one starts.
Vacuuming schedules are optional, and an application can have multiple vacuum schedules. If you do not specify at least one vacuum schedule, obsolete data is not removed from the application database.
The following examples show how to create a schedule for removing obsolete data and then add the schedule to the collection of vacuum schedules for the application: