Documentation Index
Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
AI Integration Quick Reference
AI Integration Quick Reference
deleteConversation() to delete a conversation for the logged-in user.
This method takes two parameters: the unique id (UID/GUID) of the conversation to be deleted and the type (user/group) of conversation to be deleted.
- Delete User Conversation
- Delete Group Conversation
| Parameter | Type | Description | Required |
|---|---|---|---|
conversationWith | String | UID of the user or GUID of the group whose conversation you want to delete. | Yes |
conversationType | String | The type of conversation to delete. Use CometChatConversationType.user or CometChatConversationType.group. | Yes |
Response
Response
On Success — A
String message confirming the conversation was deleted:| Parameter | Type | Description | Sample Value |
|---|---|---|---|
message | string | Success confirmation message | "cometchat-uid-1_user_cometchat-uid-2 deleted successfully" |
Error
Error
| Parameter | Type | Description | Sample Value |
|---|---|---|---|
code | string | Error code identifier | "ERR_CHAT_API_FAILURE" |
message | string | Human-readable error message | "Failed to delete the conversation." |
details | string | Additional technical details | "The specified conversation could not be found or deleted." |
Next Steps
Retrieve Conversations
Fetch and filter conversation lists
Delete Messages
Delete individual messages from conversations
Receive Messages
Listen for incoming messages in real-time
Typing Indicators
Show when users are typing in conversations