Cleaning up chat form data
You can clean up chat form data in Live Chat first by specifying the form that you want to clean up and second by creating a query to search for specific data. For example, you can create a custom record in the ES_Chat:AC_FormCleanup form to delete all ES_Chat:MasterChatRecord entries that are older than one year.
Live Chat ships with the following records enabled out-of-the-box:
- Clean Agent Request Assignments—deletes chat record request assignments every 5 minutes
- Clean Offline SelfService User Preferences—deletes offline user preferences every 1 day
Before you begin
Make sure that you understand:
- advanced AR System searches
- the exact data that you want to delete
To clean up chat form data
- In a web browser, open the ES_Chat:AC_FormCleanup form.
- Enter the name of the custom record, for example, Clean Master Chat Record.
- Temporarily set Status to Disabled.
- Enter the name of the AR System form to query, for example, ES_Chat:MasterChatRecord.
- Under Condition, enter the query, for example, 'Create Date' < "DATEDIFF".
Use the format of any valid advanced AR System search. Live Chat includes a special keyword, DATEDIFF, for dynamic DATE queries. DATEDIFF is replaced by a date calculated from Days, Hours, and Minutes settings. The resulting exact query is displayed in the read-only Query field. - Enter Days, Hours, or Minutes when the deletion should be run. For example, enter 5 to indicate you want to delete master chat records older than 5 days.
- Click Save.
- Review the entries returned by the query condition.
- If you are satisfied that the correct chat records will be deleted by your custom query, set the Status to Enabled.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*