Delete
The deleteFrom
method allows you to delete rows from a table.
Basic Delete
The simplest way to delete rows is using the deleteFrom
method:
Returning Deleted Data
On supported databases like PostgreSQL, you can return data from deleted rows:
You can return all columns using returningAll()
:
Getting Delete Count
You can get the number of deleted rows from the result: