kmongo / org.litote.kmongo.reactor / com.mongodb.reactivestreams.client.MongoCollection / deleteOneById

deleteOneById

fun <T> MongoCollection<T>.deleteOneById(id: Any): Mono<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

fun <T> MongoCollection<T>.deleteOneById(clientSession: ClientSession, id: Any): Mono<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

id - the object id