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

# Delete a product

> Deletes a product permanently in sandbox. In live mode, soft-deletes (preserves data but hides from listings). If the product has purchases in live mode, deactivates instead.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/sdk/products/{productRef}
openapi: 3.0.0
info:
  contact: {}
  description: The SolvaPay REST API specification
  title: SolvaPay REST API
  version: '1.0'
servers: []
security: []
tags: []
paths:
  /v1/sdk/products/{productRef}:
    delete:
      tags:
        - Products
      summary: Delete a product
      description: >-
        Deletes a product permanently in sandbox. In live mode, soft-deletes
        (preserves data but hides from listings). If the product has purchases
        in live mode, deactivates instead.
      operationId: ProductSdkController_deleteProduct
      parameters:
        - description: Product reference or ID
          in: path
          name: productRef
          required: true
          schema:
            example: prd_1A2B3C4D
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  action:
                    description: >-
                      Outcome of the delete: hard delete in sandbox, soft-delete
                      or deactivation in live depending on existing purchases
                    enum:
                      - deleted
                      - deactivated
                      - soft_deleted
                    type: string
                  success:
                    type: boolean
                type: object
          description: Product deleted or deactivated successfully
        '404':
          description: Product not found
      security:
        - SecretKey: []
components:
  securitySchemes:
    SecretKey:
      bearerFormat: JWT
      description: >-
        Provider secret API key (sk_live_… / sk_test_…) supplied as a Bearer
        token.
      scheme: bearer
      type: http

````