Force closing Genesys Cloud Web Messaging session via REST API

We need to programmatically terminate an active Web Messaging session from our backend service. The genesys-cloud-messaging-sdk-kotlin documentation doesn’t seem to expose a direct closeSession() method on the MessagingSession interface that triggers an immediate server-side disconnect. The client-side session.close() works fine, but our use case requires the backend to kill the session if the user abandons the chat without explicitly ending it.

I tried hitting the /api/v2/conversations/messaging/participants/{participantId} endpoint with a DELETE request using the participant ID retrieved from the session object. The request returns a 200 OK, but the conversation remains active in the Genesys Cloud admin console and the agent still sees the session as open.

Here is the Kotlin snippet I’m using to fetch the participant ID:

val participantId = session.getParticipantId()
val response = httpClient.delete("$baseUrl/api/v2/conversations/messaging/participants/$participantId") { 
 headers { 
 authorization("Bearer $token") 
 }
}

Is there a specific API call to force-close the entire conversation or mark the participant as disconnected immediately? The standard participant removal doesn’t seem to drop the session state on the platform side.