Create and schedule retention tasks
Scheduler task guide
Apply a deliberate retention policy to operational data and logs.
Create a retention taskDirect link to Create a retention task
Select retentionDirect link to Select retention
Create a retention task in Scheduler and save it to reveal the cleanup settings.
Keep only the data you needDirect link to Keep only the data you need
Enable the applicable cleanup areas—system data, job data, and auditing data—and set the days to retain. Disable a toggle to exclude that area. Optionally configure log-file size and count limits.
Start conservatively: system data for 7 days, job data for 30 days, and auditing data for 365 days. Confirm compliance requirements before changing these values.
Verify the first cleanupDirect link to Verify the first cleanup
Save, schedule the task in a suitable maintenance window, and review the first result.