> ## Documentation Index
> Fetch the complete documentation index at: https://microstrate-1133-notifications-prefs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a mapping version

> Marks a mapping version as deleted (poison-pilled).



## OpenAPI

````yaml /api-reference/endpoint/gateway/openapi.json delete /gateway/mapping-version/{gateway_topic}/{version_number}
openapi: 3.0.3
info:
  title: quiva.ai Gateway
  description: >-
    quiva.ai Gateway API for managing gateway infrastructure and routing API
    requests.
  version: 1.0.0
  contact:
    name: quiva.ai Support
    email: support@quiva.ai
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearer_auth: []
  - api_key_auth: []
tags:
  - name: Gateways
    description: Gateway management endpoints
  - name: Mappings
    description: Gateway Mapping management endpoints
  - name: Mapping Versions
    description: Gateway Mapping Version management endpoints
paths:
  /gateway/mapping-version/{gateway_topic}/{version_number}:
    delete:
      tags:
        - Mapping Versions
      summary: Delete a mapping version
      description: Marks a mapping version as deleted (poison-pilled).
      operationId: deleteMappingVersion
      parameters:
        - $ref: '#/components/parameters/gateway_topic_param'
        - $ref: '#/components/parameters/version_number_param'
        - $ref: '#/components/parameters/method_query_param'
        - $ref: '#/components/parameters/path_query_param'
      responses:
        '200':
          description: Mapping version marked as deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
              example:
                message: success
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    gateway_topic_param:
      name: gateway_topic
      in: path
      description: Unique topic identifier of the gateway
      required: true
      schema:
        type: string
      example: abcdef123456
    version_number_param:
      name: version_number
      in: path
      description: Sequential version number of the mapping version
      required: true
      schema:
        type: integer
      example: 1
    method_query_param:
      name: method
      in: query
      description: HTTP method for the mapping in uppercase
      required: true
      schema:
        type: string
        enum:
          - GET
          - POST
          - PUT
          - DELETE
          - PATCH
          - OPTIONS
          - HEAD
      example: GET
    path_query_param:
      name: path
      in: query
      description: URL path for the mapping including the leading slash
      required: true
      schema:
        type: string
      example: /api/users
  schemas:
    SuccessResponse:
      type: object
      properties:
        message:
          type: string
          example: success
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: The requested resource does not exist
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    api_key_auth:
      type: apiKey
      in: header
      name: X-Api-Key

````