---
schema_version: "1"
id: ae1eae350ba17d590bbabb416f9c9ef239da0598a47e95072b54dba7af228f7f
title: Delete Conversation Data Directly from Flow or Apex
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/release-notes/264-0-0/rn_messaging_delete_conversation_data.md
canonical_url: https://help.salesforce.com/s/articleView?id=release-notes.rn_messaging_delete_conversation_data.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 1eb80dd9c810aff1ab10397b56aeec3c62e618bca3524cb4f39212980778c773
description: 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.
products:
  - Cross Cloud
release: "264"
---
# 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](https://help.salesforce.com/s/articleView?id=service.messaging_editions.htm&type=5&language=en_US).

**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](https://developer.salesforce.com/docs/service/conversation-data-api/guide/delete-with-flow-and-apex.html).

#### See Also

- [_Salesforce Developer Docs_: Delete Conversation Data with Flow or Apex](https://developer.salesforce.com/docs/service/conversation-data-api/guide/delete-with-flow-and-apex.html)