> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-skills-v5-temp.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Conversation

> Delete one-on-one or group conversations for the logged-in user with the CometChat React Native SDK.

<Accordion title="AI Integration Quick Reference">
  | Field          | Value                                                                                                                                                           |
  | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Package        | `@cometchat/chat-sdk-react-native`                                                                                                                              |
  | Import         | `import { CometChat } from "@cometchat/chat-sdk-react-native";`                                                                                                 |
  | Key Methods    | `deleteConversation()`                                                                                                                                          |
  | Key Classes    | `CometChatException`                                                                                                                                            |
  | Prerequisites  | SDK initialized via [`CometChat.init()`](/sdk/react-native/setup-sdk) and a logged-in user via [`CometChat.login()`](/sdk/react-native/authentication-overview) |
  | Primary output | `Promise<string>` — the deleted conversation's identifier; rejects with `CometChatException`                                                                    |
  | Constraints    | Deletion is **per-user**: the other participant keeps their copy. Deleting does not delete the underlying messages.                                             |
  | Related        | [Retrieve Conversations](/sdk/react-native/retrieve-conversations) · [Delete a Message](/sdk/react-native/delete-message)                                       |
  | Full reference | [`Conversation`](/sdk/reference/entities#conversation) · [`CometChatException`](/sdk/reference/auxiliary#cometchatexception)                                    |

  ```javascript theme={null}
  // Delete user conversation
  await CometChat.deleteConversation("UID", "user");

  // Delete group conversation
  await CometChat.deleteConversation("GUID", "group");
  ```

  **Note:** Deletes only for the logged-in user. Use [REST API](https://api-explorer.cometchat.com/reference/resets-user-conversation) to delete for all participants.
</Accordion>

<Warning>
  This operation is irreversible. Deleted conversations cannot be recovered for the logged-in user.
</Warning>

Use `deleteConversation()` to delete a conversation for the logged-in user.

<Tabs>
  <Tab title="Delete User Conversation (TypeScript)">
    ```typescript theme={null}
    let UID: string = "UID";
    let type: string = "user";
    CometChat.deleteConversation(UID, type).then(
      (deletedConversation: string) => {
          console.log(deletedConversation);
      }, (error: CometChat.CometChatException) => {
          console.log('error while deleting a conversation', error);
      }
    );    
    ```
  </Tab>

  <Tab title="Delete User Conversation (JavaScript)">
    ```javascript theme={null}
    let UID = "UID";
    let type = "user";
    CometChat.deleteConversation(UID, type).then(
      deletedConversation => {
          console.log(deletedConversation);
      }, error => {
          console.log('error while deleting a conversation', error);
      }
    ); 
    ```
  </Tab>

  <Tab title="Delete Group Conversation (TypeScript)">
    ```typescript theme={null}
    let GUID: string = "GUID";
    let type: string = "group";
    CometChat.deleteConversation(GUID, type).then(
      (deletedConversation: string) => {
          console.log(deletedConversation);
      }, (error: CometChat.CometChatException) => {
          console.log('error while deleting a conversation', error);
      }
    );
    ```
  </Tab>

  <Tab title="Delete Group Conversation (JavaScript)">
    ```javascript theme={null}
    let GUID = "GUID";
    let type = "group";
    CometChat.deleteConversation(GUID, type).then(
      deletedConversation => {
          console.log(deletedConversation);
      }, error => {
          console.log('error while deleting a conversation', error);
      }
    );
    ```
  </Tab>
</Tabs>

This deletes the conversation only for the logged-in user. To delete for all participants, use the [REST API](https://api-explorer.cometchat.com/reference/resets-user-conversation).

| Parameter        | Description                               | Required |
| ---------------- | ----------------------------------------- | -------- |
| conversationWith | UID or GUID of the conversation to delete | Yes      |
| conversationType | `user` or `group`                         | Yes      |

On success, returns a confirmation message string.

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Retrieve Conversations" icon="comments" href="/sdk/react-native/retrieve-conversations">
    Fetch and filter conversation lists
  </Card>

  <Card title="Delete Messages" icon="trash" href="/sdk/react-native/delete-message">
    Delete individual messages from conversations
  </Card>

  <Card title="Typing Indicators" icon="keyboard" href="/sdk/react-native/typing-indicators">
    Show when users are typing in conversations
  </Card>

  <Card title="Delivery & Read Receipts" icon="check-double" href="/sdk/react-native/delivery-read-receipts">
    Track message delivery and read status
  </Card>
</CardGroup>
