Method: db::delete

Runs a DELETE query

Info

Syntax

db::delete($table, $where='')

Parameters

Return (mixed)

The number of affected rows or an error response

Example


db::delete('user', array('id' => 1));
// deletes the user with the id 1