deleteWhere

fun <T : Table> T.deleteWhere(limit: Int? = null, op: T.(ISqlExpressionBuilder) -> Op<Boolean>): Int

Represents the SQL statement that deletes only rows in a table that match the provided op.

Return

Count of deleted rows.

Parameters

limit

Maximum number of rows to delete.

op

Condition that determines which rows to delete.

Samples

org.jetbrains.exposed.v1.sql.tests.shared.dml.DeleteTests.testDelete01