Contents:
Overview
This guide shows you how to manage storage space by removing LeanData Log history in two ways: by reducing the retention period or by manually deleting logs through the Salesforce Developer Console.
Definitions
-
Log (LeanData__Log__c)
- A custom LeanData object that is generated each time a record is routed through a deployed LeanData graph. The Log references one primary record and information related to one trip through a Routing Deployment. If a record takes multiple trips through routing deployments, separate logs will be generated.
-
Time-to-Action Tracker (LeanData__Time_To_Action_Tracker__c)
- A custom LeanData object that measures the date/time a record enters and exits a Hold Until Node or a NotifyPlus Node in a Routing graph and the duration that the record was held for.
Reducing Retention
By default, Logs are stored for 90 days and Time-to-Action Logs for 365 days. Any logs that exceed their designated retention period are automatically deleted during daily cleanup.
You can reduce storage usage by shortening these retention periods. Configure the retention settings in the Admin > Settings > Reporting page of LeanData.
Reducing Log and Time-to-Action Tracker Retention
- From the LeanData App, navigate to Admin > Settings > Reporting Tab.
- In the Audit Logs, Meeting Logs, & Round Robin History section, change the Retention setting to the desired number of days.
- In the Time-to-Action Retention section, change the Retention setting to the desired number of days.
- Click the Save Changes button at the top in the green bar.
Please Note: Once the logs are deleted, any associated Audit logs or Time-to-Action data will also be deleted and no longer be referenced.
Deleting Logs from the Developer Console
You can also remove records from the LeanData Log object (LeanData__Log__c) manually, by utilizing the following SOQL query with the SFDC Developer console, under the 'Open Execute Anonymous Window':
List<LeanData__log__c> logs= [SELECT Id FROM LeanData__Log__c LIMIT 10000]; Database.delete(logs);
This query will allow you to clear 10,000 logs at a time. Multiple attempts may be needed to remove all Logs.
Please Note: Once the logs are deleted, any associated Audit logs will also be deleted and no longer be referenced.
For questions or additional assistance please contact LeanData Support.