Managing Plugin Trace Logs and System Jobs is often overlooked, but these can silently consume storage capacity and impact system performance.
Based on my previous experiences, there are two ways to automate the cleanup:
✅ Bulk Delete Jobs (OOTB feature) – Easy to set up with scheduled recurring jobs.
○ Add Filters like:
Created On older than X days.
Status: Completed, Succeeded, or Failed.
○ Set the Recurrence Schedule (daily, weekly, or custom).
⚙️ Power Automate Flows – Ideal for custom filtering or advanced logic but consumes API calls.
○ Set recurrence to your desired interval.
○ Add List Rows (Dataverse) action.
Table Name: plugintracelog or asyncoperation (System Jobs)
○ Filter Query: createdon lt @addDays(utcNow(), -30) (Older than 30 days)
○ Add Apply to Each action.
Inside, add Delete Row (Dataverse) action.
Setting up regular cleanups can:
✅️ Free up storage & log capacity
✅️ Improve system performance
✅️ Lower licensing costs
💡 Tip: Use Bulk Delete Jobs for standard cleanup and Power Automate for custom scenarios.
Small automation, big impact!