Frozen hash problem

I'd like to delete some records before saving them. I ran this experiment:

before_save :prune_lab_datas

  def prune_lab_datas     lab_datas.each do |lab_data|       lab_data.destroy     end     raise lab_datas.to_yaml   end

But nothing seems to be deleted in the hash: