# File lib/fog/libvirt/models/compute/server.rb, line 176 def destroy(options={ :destroy_volumes => false}) requires :raw poweroff unless stopped? #TODO: add handling of failure @raw.undefine if options[:destroy_volumes] # volumes.all filters do not handle nil keys well connection.volumes.all(:path => disk_path).each { |vol| vol.destroy} end end