def delete_volume(name)
      volume = get_volume(name)
      if !volume || !volume['id'] then
        puts "\nError: Volume '#{name}' does not exist"
        exit 1
      end

      params = {
          'command' => 'deleteVolume',
          'id' => volume['id']
      }

      json = send_request(params)
      json['success']
    end
def delete_volume(name)
      volume = get_volume(name)
      if !volume || !volume['id'] then
        puts "\nError: Volume '#{name}' does not exist"
        exit 1
      end

      params = {
          'command' => 'deleteVolume',
          'id' => volume['id']
      }

      json = send_request(params)
      json['success']
    end
Deletes the volume with the specified name.