delete

open fun delete(entity: Entity): Uni<Void>

Delete the given entity from the database, if it is already persisted.

Parameters

entity

the entity to delete.

See also


@GenerateBridge
open fun delete(query: String, vararg params: Any?): Uni<Long>

Delete all entities of this type matching the given query, with optional indexed parameters.

Return

the number of entities deleted.

Parameters

query

a query string

params

optional sequence of indexed parameters

See also


@GenerateBridge
open fun delete(query: String, params: Map<String, Any?>): Uni<Long>

Delete all entities of this type matching the given query, with named parameters.

Return

the number of entities deleted.

Parameters

query

a query string

params

Map of named parameters

See also


@GenerateBridge
open fun delete(query: String, params: Parameters): Uni<Long>

Delete all entities of this type matching the given query, with named parameters.

Return

the number of entities deleted.

Parameters

query

a query string

params

Parameters of named parameters

See also


@GenerateBridge
open fun delete(query: Bson): Uni<Long>

Delete all entities of this type matching the given query

Return

the number of entities counted.

Parameters

query

a Bson query