There are system batch job which run cleanup tasks periodically.
DETECT_DEAD_SESSIONS
Cleanup sessions every minute after a period of inactivity (default 30 min.) See SESSION_TIMEOUT in Server Setttings.
MAIL_MANAGER
When an email wasn't send because of an intermediate issue (400 - 500 status code). Then the batch job will try to send it again after a period of time.
DATABASE_CLEANUP
Cleanup old logs and statistic entries. The expiration times can be configured via the batch job parameters.
| Parameter Name | Type of Logs | Default Expiration |
|---|---|---|
| EXCEPTIONLOG_EXPIRATION_MONTHS | Server Errors | 3 Months |
| JOBLOG_EXPIRATION_MONTHS | Batch Job Log Entries | 3 Months |
| ETLLOG_EXPIRATION_MONTHS | ETL Log Entries | 3 Months |
| OAUTHPROVIDER_EXPIRATION_MONTHS | OAuth Provider | 3 Months |
| MAIL_EXPIRATION_MONTHS | Mail Log Entries | 3 Months |
| CMSSTATISTIC_EXPIRATION_MONTHS | CMS Page Views | 3 Years |
| STATISTICREPORT_EXPIRATION_MONTHS | Statistics Reports (like logins) | 3 Years |