> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# Delete Products

DELETE https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/products

To delete *Product* objects, you must include a filter, such as `id:in` or any other supported query parameter. This requirement prevents you from inadvertently deleting every *Product* in a store with an unfiltered request. A `DELETE` request with no filter returns a `422` response.

> #### Note
>
> The maximum number of products you can delete at one time is 250.

**Example**:
To delete products with IDs 1, 2, and 3, use `DELETE /v3/catalog/products?id:in=1,2,3`.

### Delete all products

No single request deletes an entire catalog; the filter requirement and the 250-product limit are both intentional safeguards against mass deletion. To remove every product, delete in batches until the catalog is empty:

1. Fetch a page of product IDs with `GET /v3/catalog/products?limit=250&include_fields=id`.
2. Delete that batch with `DELETE /v3/catalog/products?id:in={comma-separated IDs}`.
3. Repeat from step 1 until `GET /v3/catalog/products` returns an empty `data` array.

Deletions take effect immediately, so each request in step 1 reflects the products removed by the previous batch. Keep requesting the first page rather than paging through offsets, since the list shrinks as you delete.

Reference: https://docs.bigcommerce.com/developer/api-reference/rest/admin/catalog/products/delete-products

## Authentication

- `X-Auth-Token` header (required) — ### OAuth scopes | UI Name | Permission | Parameter | |:--------|:-----------|:----------| | Products | modify | `store_v2_products` | | Products | read-only | `store_v2_products_read_only` | ### Authentication header | Header | Argument | Description | |:-------|:---------|:------------| | `X-Auth-Token` | `access_token` | For more about API accounts that generate `access_token`s, see our [Guide to API Accounts](/developer/docs/overview/api-fundamentals/api-accounts#api-accounts). | ### Further reading For example requests and more information about authenticating BigCommerce APIs, see [Authentication and Example Requests](/developer/docs/overview/api-fundamentals/api-accounts#x-auth-token-header-example-requests). For more about BigCommerce OAuth scopes, see our [Guide to API Accounts](/developer/docs/overview/api-fundamentals/api-accounts#oauth-scopes). For a list of API status codes, see [API Status Codes](/developer/api-reference/rest/overview#rest-http-status-codes).

## Request

### Path parameters

- `store_hash` (string, required) — Permanent ID of the BigCommerce store.

### Query parameters

- `name` (string, optional) — Filter items by name.
- `sku` (string, optional) — Filter items by main SKU. To filter by variant SKU, see [Get all variants](/developer/api-reference/rest/admin/catalog/product-variants/get-product-variants).
- `price` (double, optional) — Filter items by price.
- `weight` (double, optional) — Filter items by weight.
- `condition` (enum, optional) — Filter items by condition.
  - Allowed values: `new`, `used`, `refurbished`
- `brand_id` (integer, optional) — Filter items by brand ID.
- `date_modified` (date, optional) — Filter items by `date_modified`.
- `date_last_imported` (date, optional) — Filter items by date_last_imported.
- `is_visible` (boolean, optional) — Filter items based on whether the product is currently visible on the storefront.
- `is_featured` (enum, optional) — Filter items by is_featured. `1` for true, `0` for false.
  - Allowed values: `1`, `0`
- `id:in` (list of integer, optional) — Pass a comma-separated list to filter by one or more product IDs.
- `inventory_level` (integer, optional) — Filter items by inventory_level.
- `total_sold` (integer, optional) — Filter items by total_sold.
- `type` (enum, optional) — Filter items by type.
  - Allowed values: `digital`, `physical`
- `categories` (integer, optional) — Filters by a single category ID, returning only products assigned exclusively to that category. A product that also belongs to one or more other categories will not be returned — to match products in a category regardless of their other memberships, use `categories:in` instead.
- `keyword` (string, optional) — Filter items by keywords found in the `name`, `description`, or `sku` fields, or in the brand name.

### Headers

- `Accept` (string, required, default: application/json) — The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body.

## Response

### 204

The products matching the filter were deleted. No content is returned.

## Errors

### 422 Unprocessable Entity Error

The request did not include an `id` or a filter. At least one is required so that you do not inadvertently delete every product in the store.

- `errors` (CatalogProductsDeleteResponsesContentApplicationJsonSchemaErrors, optional)
- `instance` (string, optional)
- `status` (integer, optional) — The HTTP status code.
- `title` (string, optional) — The error title describing the particular error.
- `type` (string, optional)

## Types

### CatalogProductsDeleteResponsesContentApplicationJsonSchemaErrors

## Examples

**SDK Code**

```python
import requests

url = "https://api.bigcommerce.com/stores/store_hash/v3/catalog/products"

querystring = {"date_last_imported":"date_last_imported","date_modified":"date_modified","is_visible":"true"}

headers = {
    "Accept": "application/json",
    "X-Auth-Token": "<apiKey>"
}

response = requests.delete(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.bigcommerce.com/stores/store_hash/v3/catalog/products?date_last_imported=date_last_imported&date_modified=date_modified&is_visible=true';
const options = {
  method: 'DELETE',
  headers: {Accept: 'application/json', 'X-Auth-Token': '<apiKey>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.bigcommerce.com/stores/store_hash/v3/catalog/products?date_last_imported=date_last_imported&date_modified=date_modified&is_visible=true"

	req, _ := http.NewRequest("DELETE", url, nil)

	req.Header.Add("Accept", "application/json")
	req.Header.Add("X-Auth-Token", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.bigcommerce.com/stores/store_hash/v3/catalog/products?date_last_imported=date_last_imported&date_modified=date_modified&is_visible=true")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["Accept"] = 'application/json'
request["X-Auth-Token"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.delete("https://api.bigcommerce.com/stores/store_hash/v3/catalog/products?date_last_imported=date_last_imported&date_modified=date_modified&is_visible=true")
  .header("Accept", "application/json")
  .header("X-Auth-Token", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'https://api.bigcommerce.com/stores/store_hash/v3/catalog/products?date_last_imported=date_last_imported&date_modified=date_modified&is_visible=true', [
  'headers' => [
    'Accept' => 'application/json',
    'X-Auth-Token' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.bigcommerce.com/stores/store_hash/v3/catalog/products?date_last_imported=date_last_imported&date_modified=date_modified&is_visible=true");
var request = new RestRequest(Method.DELETE);
request.AddHeader("Accept", "application/json");
request.AddHeader("X-Auth-Token", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Accept": "application/json",
  "X-Auth-Token": "<apiKey>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.bigcommerce.com/stores/store_hash/v3/catalog/products?date_last_imported=date_last_imported&date_modified=date_modified&is_visible=true")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```