def report_definition_delete(repdef_or_id)
      if repdef_or_id.class == ReportDefinition
        report_definition = repdef_or_id
      else
        report_definition = ReportDefinition.new(self)
        report_definition.instance_eval { @id = repdef_or_id }
      end

      op           = ReportDefinitionOperation.remove(report_definition)
      soap_message = service.report_definition.mutate(credentials, op.to_xml)
      add_counters(soap_message.counters)

      unless @report_definitions
        @report_definition.delete_if { |repdef| repdef == report_definition.id }
      end
      report_definition.instance_eval { @id = -1 } # repdef status invalid/deleted
      self
    end
def report_definition_delete(repdef_or_id)
      if repdef_or_id.class == ReportDefinition
        report_definition = repdef_or_id
      else
        report_definition = ReportDefinition.new(self)
        report_definition.instance_eval { @id = repdef_or_id }
      end

      op           = ReportDefinitionOperation.remove(report_definition)
      soap_message = service.report_definition.mutate(credentials, op.to_xml)
      add_counters(soap_message.counters)

      unless @report_definitions
        @report_definition.delete_if { |repdef| repdef == report_definition.id }
      end
      report_definition.instance_eval { @id = -1 } # repdef status invalid/deleted
      self
    end
Delete a report definition

 @param[ReportDefinition, Number]