Skip to main content


class Ens.Util.Tasks.Purge extends %SYS.Task.Definition

Property Inventory

Method Inventory


property BodiesToo as %Boolean [ InitialExpression = 0 ];
Delete message bodies whenever their message header is deleted. This is off by default because some Productions may use message objects that are part of a larger environment and not transitory.
Property methods: BodiesTooDisplayToLogical(), BodiesTooGet(), BodiesTooIsValid(), BodiesTooLogicalToDisplay(), BodiesTooNormalize(), BodiesTooSet()
property KeepIntegrity as %Boolean [ InitialExpression = 1 ];
Preserve messages not yet completely processed
Property methods: KeepIntegrityDisplayToLogical(), KeepIntegrityGet(), KeepIntegrityIsValid(), KeepIntegrityLogicalToDisplay(), KeepIntegrityNormalize(), KeepIntegritySet()
property NumberOfDaysToKeep as %Integer (MINVAL = 0) [ InitialExpression = 7 ];
How many days of messages should not be purged
Property methods: NumberOfDaysToKeepDisplayToLogical(), NumberOfDaysToKeepGet(), NumberOfDaysToKeepIsValid(), NumberOfDaysToKeepLogicalToDisplay(), NumberOfDaysToKeepNormalize(), NumberOfDaysToKeepSet()
property TypesToPurge as %String (DISPLAYLIST = ",All Types,Events,Messages,Business Processes,Rule Logs,I/O Logs,Host Monitor Data,Managed Alerts", VALUELIST = ",all,events,messages,processes,rulelogs,iologs,hostcounters,managedalerts") [ InitialExpression = "events" , Required ];
The type of thing to purge
Property methods: TypesToPurgeDisplayToLogical(), TypesToPurgeGet(), TypesToPurgeIsValid(), TypesToPurgeLogicalToDisplay(), TypesToPurgeLogicalToOdbc(), TypesToPurgeNormalize(), TypesToPurgeSet()


method OnTask() as %Status
The OnTask() method is called to execute the task
classmethod PurgeAll(pTypesToPurge As %String = "all", pNumberOfDaysToKeep As %Integer = 0, pBodiesToo As %Boolean = 1) as %Status
Purge the message store, and event log

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab