delete(id_or_array)
Instance Public methods
Deletes the row with a primary key matching the id argument,
using a SQL DELETE statement, and returns the number of rows
deleted. Active Record objects are not
instantiated, so the object's callbacks are not executed, including any
:dependent association options.
You can delete multiple rows at once by passing an Array of ids.
Note: Although it is often much faster than the alternative,
#destroy, skipping callbacks might bypass business