kmongo / org.litote.kmongo.coroutine / CoroutineCollection / deleteOneById

deleteOneById

suspend fun deleteOneById(id: Any): DeleteResult (source)

Removes at most one document from the id parameter. If no documents match, the collection is not modified.

Parameters

id - the object id

suspend fun deleteOneById(clientSession: ClientSession, id: Any): DeleteResult (source)

Removes at most one document from the id parameter. If no documents match, the collection is not modified.

Parameters

clientSession - the client session with which to associate this operation

id - the object id