> ## Documentation Index
> Fetch the complete documentation index at: https://docs.merchantops.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Comparison Run

> Hard-delete a comparison run and cascade-delete its proposals.

Refused (409) if any proposal in the run already carries a
``batch_id`` — the run is bound to one or more price batches and
deletion would orphan them. The user should delete the dependent
batches first (which also unlinks the proposals' batch_id), then
retry this endpoint.



## OpenAPI

````yaml /openapi/merchantops-public.json delete /api/pricing/comparison/{run_id}
openapi: 3.1.0
info:
  description: >-
    Public API for the MerchantOps product catalog, pricing, and publishing
    surface.
  title: MerchantOps API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.merchantops.ai
security: []
paths:
  /api/pricing/comparison/{run_id}:
    delete:
      tags:
        - Pricing
        - Pricing
        - Price Comparison
      summary: Delete Comparison Run
      description: |-
        Hard-delete a comparison run and cascade-delete its proposals.

        Refused (409) if any proposal in the run already carries a
        ``batch_id`` — the run is bound to one or more price batches and
        deletion would orphan them. The user should delete the dependent
        batches first (which also unlinks the proposals' batch_id), then
        retry this endpoint.
      operationId: delete_comparison_run
      parameters:
        - in: path
          name: run_id
          required: true
          schema:
            title: Run Id
            type: string
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: X-Organization-ID
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Organization-Id
        - in: cookie
          name: stytch_session
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Stytch Session
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````