module ActiveRecord::Persistence::ClassMethods

def delete(id_or_array)

Todo.delete([2,3,4])
# Delete multiple rows

Todo.delete(1)
# Delete a single row

==== Examples

that ensures referential integrity or performs other essential jobs.
skipping callbacks might bypass business logic in your application
Note: Although it is often much faster than the alternative, #destroy,

You can delete multiple rows at once by passing an Array of ids.

executed, including any :dependent association options.
Record objects are not instantiated, so the object's callbacks are not
SQL +DELETE+ statement, and returns the number of rows deleted. Active
Deletes the row with a primary key matching the +id+ argument, using an
def delete(id_or_array)
  delete_by(primary_key => id_or_array)
end