In your model class, there is a deletemethod (s destroy) that can take a single ID or an array of identifiers to delete (or destroy). Passing an array will produce only one statement delete, and this is the best option in this case.
User.delete @users.map { |u| u.id }
User.destroy @users.map { |u| u.id }
, destroy ActiveRecord ( ..). , , destroy ( delete), , J -_- L answer .