> ## 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.

# Batch Delete Policies

> Batch delete MAP policies and all their prices. Products are NOT deleted.

Governance rules applied per-policy:
- Policy must be in pending_review or rejected state
- User must be from the same organization that contributed the policy



## OpenAPI

````yaml /openapi/merchantops-public.json post /api/map-pricing/policies/batch-delete
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/map-pricing/policies/batch-delete:
    post:
      tags:
        - MAP Pricing
        - MAP Pricing
      summary: Batch Delete Policies
      description: >-
        Batch delete MAP policies and all their prices. Products are NOT
        deleted.


        Governance rules applied per-policy:

        - Policy must be in pending_review or rejected state

        - User must be from the same organization that contributed the policy
      operationId: batch_delete_policies
      parameters:
        - 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
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/merchantops_server__api__routers__map_pricing__BatchDeleteRequest
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/merchantops_server__api__routers__map_pricing__BatchDeleteResponse
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    merchantops_server__api__routers__map_pricing__BatchDeleteRequest:
      description: Request body for batch deleting policies.
      properties:
        policy_ids:
          description: List of policy IDs to delete
          items:
            type: string
          title: Policy Ids
          type: array
      required:
        - policy_ids
      title: MapPricingBatchDeleteRequest
      type: object
    merchantops_server__api__routers__map_pricing__BatchDeleteResponse:
      description: Response for batch delete operations.
      properties:
        deleted:
          title: Deleted
          type: integer
        details:
          items:
            additionalProperties: true
            type: object
          title: Details
          type: array
      required:
        - deleted
        - details
      title: MapPricingBatchDeleteResponse
      type: object
    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

````