method
destroy_all
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::Batches::BatchEnumerator
destroy_all()public
Destroys records in batches. Returns the total number of rows affected.
Person.where("age < 10").in_batches.destroy_all
See Relation#destroy_all for details of how each batch is destroyed.