Feature: Delete old security events and activities 

Description 

A daily job at 03:45 deletes security events and activities older than the company's security log retention (securityLogRetentionDays, 30 to 730 days, 180 by default), counted from 00:00 in the company's time zone. Events without a company, such as failed logins for unknown identifiers, are deleted after 180 days. A run that deleted anything records one securityLogPurged event in the company with the cut-off date and the counts.

Impact 

Lowering the retention takes effect with the next run. Running the job twice on one day deletes nothing the second time.