---
title: "product.variant.delete.batch"
method: POST
path: "/product.variant.delete.batch.json"
tags: ["product"]
---

# product.variant.delete.batch

`POST /product.variant.delete.batch.json`

## Request

- Base URL: `https://api.api2cart.com/v1.1`
- URL: `https://api.api2cart.com/v1.1/product.variant.delete.batch.json`
- Auth: API key in header `x-api-key` and API key in header `x-store-key`

Remove product variants from the store.

## Request body

- ProductVariantDeleteBatch
  - `clear_cache` boolean
  - `reindex` boolean
  - `payload` object[], required: Contains an array of product variant deletion requests, each including the product ID and variant ID. The list of properties may vary depending on the specific platform.
    - `product_id` string, required
    - `id` string, required
    - `store_id` string
  - `idempotency_key` string: A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>

## Response `200`

successful operation

- object
  - `return_code` integer
  - `return_message` string
  - `result` object
    - `job_id` string

---

[API](https://skmtc.dev/api2cart/apis/api2cart-openapi.md) · [All operations](https://skmtc.dev/api2cart/apis/api2cart-openapi/llms.txt) · [OpenAPI document](https://skmtc.dev/api2cart/apis/api2cart-openapi/revisions/c34440741693?raw)
