kmongo / org.litote.kmongo / unset

unset

fun <T> unset(property: KProperty<T>): Bson (source)

Creates an update that deletes the property with the given name.

Parameters

property - the property

Return
the update

Mongodb
.driver.manual reference/operator/update/unset/ $unset