record.destroy working