In Marketing Cloud Connect for Marketing Cloud Engagement, the Tracking Data Cleanup Tool includes custom settings for batch size and cascade-delete.
To access the settings for batch size and cascade-delete, in Setup, go to Custom Settings. Then click Manage for ET4AE Configuration.
| Field | Description |
|---|---|
| Enable Cascade-Delete | Automatically delete parent and child tracking data records when using the Tracking Data Cleanup Tool. To avoid Apex governor limits on batch delete jobs, disable cascade-delete. |
| Tracking Data Cleanup Batch Size | Enter the number of records to delete per batch. Delete up to 2,000 records per batch. We recommend a batch size of 200. If you input a number less than 1, the batch size defaults to 1. If you enter a number greater than 2,000, the batch size defaults to 200. |
Consider both the speed of tracking data deletion and Apex governor limits when you configure these settings. Larger batch sizes require less time overall because fewer iterations are used to delete the records. However, larger batch sizes risk reaching Apex governor limits. For example, if your custom trigger or code causes errors, reduce the batch size and try again.