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

# Bulk delete digital products

> Soft-deletes up to 50 digital products in one call.

Soft-deletes up to 50 digital products in one call. Ids that are not in this store do not fail the call: they come back in `notFound`. Requires the `WRITE_INVENTORY` scope.

<Note>
  These endpoints only work on a store whose type is `digital`. On any other store they return `403` with `This is only available on digital stores.` See [Digital stores](/digital-stores).
</Note>

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://api.salesive.com/api/v1/digital-products/bulk-delete \
    -H "Authorization: Bearer app_<your-app-access-token>" \
    -H "Content-Type: application/json" \
    -d '{"ids":["6702c1a4e1b3a40012cd2001","6702c1a4e1b3a40012cd2002"]}'
  ```
</CodeGroup>


## OpenAPI

````yaml apps-api/specs/digital.json POST /digital-products/bulk-delete
openapi: 3.1.0
info:
  title: Salesive Apps API , Digital products
  description: >-
    Digital store endpoints (products, the all-access pass and buyer access)
    callable by an installed third-party app using its app access token. They
    only work on stores whose type is `digital`. The target store is bound to
    the token server-side by the OAuth install flow.
  version: 1.0.0
servers:
  - url: https://api.salesive.com/api/v1
    description: Production
security:
  - AppToken: []
paths:
  /digital-products/bulk-delete:
    post:
      tags:
        - digital-products
      summary: Bulk delete digital products
      description: >-
        Soft-deletes up to 50 digital products in one call. Ids that are not in
        this store are reported in `notFound` instead of failing the call.
        Requires the `WRITE_INVENTORY` scope. The store must be a digital store,
        otherwise the call returns 403.
      operationId: bulkDeleteDigitalProducts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - ids
              properties:
                ids:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  maxItems: 50
                  description: Digital product ObjectIds (unique, 1 to 50).
              example:
                ids:
                  - 6702c1a4e1b3a40012cd2001
                  - 6702c1a4e1b3a40012cd2002
      responses:
        '200':
          description: 'Bulk delete digital products: success.'
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - success
                  - message
                  - data
                properties:
                  status:
                    type: integer
                    example: 200
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Digital products deleted successfully
                  data:
                    type: object
                    properties:
                      deleted:
                        type: array
                        items:
                          type: string
                      notFound:
                        type: array
                        items:
                          type: string
                    example:
                      deleted:
                        - 6702c1a4e1b3a40012cd2001
                      notFound:
                        - 6702c1a4e1b3a40012cd2002
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  responses:
    BadRequest:
      description: The body or query failed validation. `message` says which rule.
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: integer
                example: 400
              success:
                type: boolean
                example: false
              message:
                type: string
                example: A one-time price is required
              data:
                type: object
                nullable: true
    Unauthorized:
      description: Missing or invalid app access token.
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: integer
                example: 401
              success:
                type: boolean
                example: false
              message:
                type: string
                example: App token expired or invalid.
              data:
                type: object
                nullable: true
    Forbidden:
      description: >-
        The app token lacks the required scope (`READ_INVENTORY` for reads,
        `WRITE_INVENTORY` for writes), or the store is not a digital store
        (`This is only available on digital stores.`).
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: integer
                example: 403
              success:
                type: boolean
                example: false
              message:
                type: string
                example: >-
                  This app is missing the required permission(s):
                  WRITE_INVENTORY
              data:
                type: object
                nullable: true
  securitySchemes:
    AppToken:
      type: http
      scheme: bearer
      description: >-
        Installed-app access token (prefix app_), issued by the OAuth install
        flow. The store is bound to the token server-side , never send a shop
        id.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.