Delete Conversation Data Directly from Flow or Apex

Previously, deleting conversation data required a custom REST API integration with External Client App authentication. Call the Conversation Data API delete operations from Flow or Apex instead, and Salesforce handles authentication for you. You can now remove messaging end users and their data, or delete specific conversations, processing up to 50 records per call.

Where: This change applies to orgs with Enhanced Messaging and the Conversation Data API enabled. View required editions.

How: To use the delete operations, first enable the Conversation Data API from Setup by navigating to Conversation Service APIs and setting the toggle to On. In Flow, add a delete operation as a Salesforce API Platform action in Flow Builder. In Apex, use the ConversationApi.ConversationDelete class. For detailed instructions, see Delete Conversation Data with Flow or Apex.