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

# Delete product

> Blocked if the product has any approved/completed sale, or is locked for review.



## OpenAPI

````yaml /openapi.yaml delete /v1/products/{id}
openapi: 3.1.0
info:
  title: Lojou API
  version: 1.0.0
  description: |
    Official reference for the Lojou `/v1` API — everything a developer needs
    to create products, process orders, manage plans, and receive webhooks
    from a Lojou store.
servers:
  - url: https://api.lojou.app
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Health
  - name: OAuth
  - name: User
  - name: Products
  - name: Plans
  - name: Orders
  - name: Customers
  - name: Files
  - name: Webhooks
  - name: Discounts
  - name: Affiliates
paths:
  /v1/products/{id}:
    delete:
      tags:
        - Products
      summary: Delete product
      description: >-
        Blocked if the product has any approved/completed sale, or is locked for
        review.
      operationId: deleteV1ProductById
      parameters:
        - $ref: '#/components/parameters/ProductIdParam'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusMessageResponse'
              example:
                status: success
                message: Product deleted successfully.
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '403':
          description: Forbidden — product is locked for review, or has one or more sales
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                status: error
                message: >-
                  This product cannot be deleted because it has one or more
                  sales.
                sales_count: 3
        '404':
          $ref: '#/components/responses/NotFoundError'
components:
  parameters:
    ProductIdParam:
      name: id
      in: path
      required: true
      description: Product identifier (`id` or `product_pid`).
      schema:
        type: string
  schemas:
    StatusMessageResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        message:
          type: string
          nullable: true
        data:
          oneOf:
            - type: object
              additionalProperties: true
            - type: array
              items:
                type: object
                additionalProperties: true
          nullable: true
      additionalProperties: true
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
      additionalProperties: true
  responses:
    UnauthorizedError:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            status: error
            message: Unauthorized user.
    NotFoundError:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            status: error
            message: Resource not found.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        Send an API key or an OAuth access token in the `Authorization` header
        as a Bearer token. See [Authentication](/authentication) for details.

````