Skip to main content

Deleting conversations

Through the WireApplicationManager you can delete group conversations. Here is an example for both on the standalone way:

Use Case: Remove latest group conversation

val applicationManager = wireAppSdk.getApplicationManager()
val latestConversation = applicationManager.getStoredConversations().last {
it.type == Conversation.Type.GROUP
}

applicationManager.deleteConversationSuspending(conversationId = latestConversation.id)