activemodel / kales.internal / RecordQueryBuilder / destroy

destroy

fun destroy(record: ApplicationRecord): Unit

Destroys (deletes) a record from the database. If the record's ID is missing (none/unsaved), this will throw IllegalStateException instead.