Bulk Delete Products (Tracked)
DELETE/api/products/tracked
Delete a product selection of any size in the background and return a tracked_job_log_id to follow its progress with the tracked job endpoints.
products:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token.
Body fields:
- ids (array of integers, required unless apply_to_all): the products to include
- apply_to_all (boolean, optional): true to include every product matching
filtersinstead ofids - filters (object, optional): the same filters List Products accepts, without the
filter[...]wrapper (e.g. {"ids": "101,102"}) - delete_returns (boolean, optional, default false): also delete the returns of products kept only because of them. A product whose only history is RMAs and return receipts (and the returned units still in stock) is deleted together with its return receipt lines, which takes those units back out of stock, and its RMA lines. RMAs and receipts left with no lines are deleted; other products' lines and linked sales credits stay. Returns synced to your accounting system or received in the closed period always stay, and so does the product.
Behavior:
- The selection is resolved when the request is made and deleted in slices; each product goes through the same checks and clean-up as Delete Product.
- Products that are still used (orders, stock movements, purchases, returns, …) are kept and reported in the job's
results.failure_groups, grouped by reason. Each kept group:reason,label,count,message,next_stepanditems(the first few records:id,label,link, optionaldetail). - Ids that no longer exist count as
already_deleted, so sending the same selection again only finishes what is left. - Job results:
deleted,deleted_with_parent(variations removed with their parent),already_deleted,skipped_in_use/kept/kept_count/has_kept(products kept because something uses them — not failures),failed/failed_count/has_failures(products that hit an error),failure_groups(each kept product counted once, under its main reason, so the groups add up tokept_count),groups_note, and withdelete_returnsreturns_removed(rmas,rma_lines,return_receipts,return_receipt_lines,units).
Requires permission: products.delete
Request
Responses
- 200
- 401
- 403
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.