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

deleteOneById

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