method
delete_all
rails latest stable - Class:
ActiveRecord::Batches::BatchEnumerator
delete_all()public
Deletes records in batches. Returns the total number of rows affected.
Person.in_batches.delete_all
See Relation#delete_all for details of how each batch is deleted.