[**RongIMLib**](../README.md) *** [RongIMLib](../globals.md) / removeConversation # Variable: removeConversation > `const` **removeConversation**: [`MonitorableAPI`](../type-aliases/MonitorableAPI.md)\<(`options`, `deleteRemotely?`) => `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<`void`\>\>\> 移除指定的会话 * 自 5.20.0 版本开始,该接口支持删除超级群会话; * 自 5.26.2 版本开始,该接口支持 Electron 平台删除服务器端会话 ## Description 移除指定的会话,不会删除会话内的消息 ## Param **options** 会话信息 ## Param **deleteRemotely** 是否删除服务器端会话,该参数仅 Electron 平台有效 ## Example 移除指定的会话示例: ```ts const options = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId', } const conversation = await RongIMLib.removeConversation(options); console.info('移除指定的会话结果:', conversation); ```