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
// Delete user conversation
CometChat.deleteConversation(conversationWith: "UID", conversationType: .user,
onSuccess: { msg in }, onError: { err in })
// Delete group conversation
CometChat.deleteConversation(conversationWith: "GUID", conversationType: .group,
onSuccess: { msg in }, onError: { err in })
Note: Deletes only for the logged-in user. Use REST API to delete for all participants.
This operation is irreversible. Deleted conversations cannot be recovered for the logged-in user.
Use deleteConversation() to delete a conversation for the logged-in user.
CometChat.deleteConversation(conversationWith: "cometchat-uid-1", conversationType: .user, onSuccess: { (message) in
print("Conversation deleted: \(message)")
}, onError: { (error) in
print("Error: \(error?.errorDescription)")
})
CometChat.deleteConversation(conversationWith: "group-guid-1", conversationType: .group, onSuccess: { (message) in
print("Conversation deleted: \(message)")
}, onError: { (error) in
print("Error: \(error?.errorDescription)")
})
This deletes the conversation only for the logged-in user. To delete for all participants, use the REST API.
| Parameter | Type | Required | Description |
|---|
| conversationWith | String | Yes | UID of user or GUID of group |
| conversationType | CometChat.ConversationType | Yes | .user or .group |
On success, returns a confirmation message string.
Next Steps
Retrieve Conversations
Fetch and filter conversation lists
Delete Messages
Delete individual messages from conversations
Typing Indicators
Show when users are typing in conversations
Delivery & Read Receipts
Track message delivery and read status