#!/usr/bin/env ruby # This code comes from http://ruby-it.org/pages/4.7+-+Eliminazione+dei+modelli # Check the page for copyright notice and explanations = Team.find(1) team.destroy team = Team.find(1) #lancerĂ  un'.delete(1) #elimina record con id = 1 Team.delete([1,2,3]) #elimina record con id = 1, id = 2 e id = .destroy_all("balance < 100")