Delete records from a table.
public delete ( array | integer $where = [], array | true $options = [] ) : Gdn_Dataset | ||
$where | array | integer | The where clause to delete or an integer value. |
$options | array | true | An array of options to control the delete. - limit: A limit to the number of records to delete. - reset: Deprecated. Whether or not to reset this SQL statement after the delete. Defaults to false. |
return | Gdn_Dataset | Returns the result of the delete. |