def destroy(*args)
      # First remove all attachments
      medium_attachments.each do |ma|
        ma.destroy(*args)
      end

      # Finally, remove ourselves
      parent.with_open_session do |session|
        machine = session.machine
        machine.remove_storage_controller(name)
      end
    end
def destroy(*args)
      # First remove all attachments
      medium_attachments.each do |ma|
        ma.destroy(*args)
      end

      # Finally, remove ourselves
      parent.with_open_session do |session|
        machine = session.machine
        machine.remove_storage_controller(name)
      end
    end
Destroys the storage controller. This first detaches all attachments on this
 storage controller. Note that this does *not* delete the media on the attachments,
 unless specified by the options.