Performs nightly maintenance to clean up old events and keys.




For each event in the user's database, if the associated persistence setting has been exceeded (a setting of TRUE (1)), the event is deleted from the user's database. If no persistence element is specified, any event record older than the default seven days is deleted. If all events associated with a given key are deleted, the associated key is also deleted.

Any keys older then 20 days are deleted, including the key definition and all associated events.