function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Clement Debrueres-BartoliClement Debrueres-Bartoli 

Schedule deletion of Live Chat Transcript Events

Hello,
When a Chat Transcript is created, a Live Chat Transcript Events log is created and attached to the Chat Transcript.
Is there any way to delete these Transcripts Events, ideally 10 days after the Chat has happened?
Is there a way to create a scheduled job deleting the Transcript Events automatically ?

The reason is I dont need these Transcript Events after 10 days, and they consume serious storage space.

Thank you,
Paul S.Paul S.
Clement - I believe you could write a batch apex class for this that would look for an delete all records older than 10 days.