---
updatedAt: 2026-05-27T07:01:03.000Z
agentTools:
  projectIndex: https://open-api.docs.shoplineapp.com/llms.txt
---

# Bulk Delete Product

To bulk delete products.<br> 批量刪除商品。

# OpenAPI definition

```json
{
  "info": {
    "title": "SHOPLINE Open API",
    "version": "2.348.2",
    "description": "Welcome to the shopline open-api developer hub. You'll find comprehensive guides and documentation to help you start working with shopline open-api as quickly as possible, as well as support if you get stuck. Let's jump right in!"
  },
  "servers": [
    {
      "url": "https://open.shopline.io/v1",
      "description": "Production"
    }
  ],
  "openapi": "3.0.0",
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "ServerError": {
        "type": "object",
        "properties": {
          "message": {
            "description": "A detailed message of the reason of failure",
            "example": "Unable to create EventTrackers",
            "type": "string"
          },
          "code": {
            "description": "An error code",
            "example": "UnknownError",
            "type": "string"
          }
        }
      },
      "UnprocessableEntityError": {
        "type": "object",
        "properties": {
          "error": {
            "description": "A detailed message of the reason of failure",
            "type": "string"
          },
          "message": {
            "description": "A detailed message of the reason of failure",
            "example": "Unable to process the changes [\"event_type\" is not valid], [\"config_data.access_token\" is not valid]",
            "type": "string"
          },
          "code": {
            "description": "An error code",
            "example": "ValidationError",
            "type": "string"
          },
          "extras": {
            "description": "An extra information of the reason of failure",
            "type": "object"
          }
        }
      }
    }
  },
  "paths": {
    "/products/bulk": {
      "delete": {
        "summary": "Bulk Delete Product",
        "description": "To bulk delete products.<br> 批量刪除商品。",
        "parameters": [
          {
            "name": "ids[]",
            "description": "The id of the product that will be deleted. Max delete 100 products at a time.<br> 需要刪除的商品id，每次最多只能刪除100個商品。",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "example": "613844d3df38c500447ab063"
          }
        ],
        "tags": [
          "Products"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "updated_product_ids": {
                      "type": "array",
                      "description": "The successfully deleted product id<br>成功刪除的商品id",
                      "items": {
                        "type": "string"
                      },
                      "example": [
                        "613844d3df38c500447ab063",
                        "613844d3df38c500447ab064"
                      ]
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "description": "The failed message<br>失敗刪除的信息",
                            "example": "product: 613844d3df38c500447ab064 does not exist."
                          },
                          "id": {
                            "description": "The failed delete product id<br>失敗刪除的商品id",
                            "example": "6152bc92a39f0301818c70ec"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "1": {
                    "summary": "Partial success with errors",
                    "value": {
                      "updated_product_ids": [
                        "6152bc92a39f0301818c70eb",
                        "6152bc92a39f0301818c70ed"
                      ],
                      "errors": [
                        {
                          "id": "6152bc92a39f0301818c70ec",
                          "message": "Product: 6152bc92a39f0301818c70ec does not exist."
                        }
                      ]
                    }
                  },
                  "2": {
                    "summary": "No error presents",
                    "value": {
                      "updated_product_ids": [
                        "6152bc92a39f0301818c70eb",
                        "6152bc92a39f0301818c70ed"
                      ],
                      "errors": []
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable entity error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityError"
                },
                "examples": {
                  "1": {
                    "summary": "Invalid request body",
                    "value": {
                      "message": "Unable to process the changes [\"ids\" must be an array]",
                      "code": "ValidationError"
                    }
                  },
                  "2": {
                    "summary": "Duplicated id error",
                    "value": {
                      "message": "Unable to process the changes [\"ids\" cannot be the same]",
                      "code": "ValidationError"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerError"
                },
                "examples": {
                  "1": {
                    "summary": "Unknown error",
                    "value": {
                      "message": "Unable to delete bulkDelete",
                      "code": "UNKNOWN"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Products",
      "description": "Operations about products"
    }
  ]
}
```