This command removes HomeSeer log files older than the given number of days. If HomeSeer is not configured to automatically prune log files, this command can be used when manual pruning is desired.
Parameter: days
Type: integer (.NET Short)
Description: The number of days of log files that you wish to keep.
Parameter: number
removed
Type: integer (.NET Short)
Description: The number of log files that were removed.
Sub Main()
Dim i
i = hs.PruneLogs(20)
hs.WriteLog "Log Maint", CStr(i) & " files were removed
to prune the log files back to 20 days."
End Sub