Delete Product Variants
shopify_delete_variantsPermanently and irreversibly delete specified product variants and their inventory items. Use to remove unwanted options while keeping at least one variant per product.
Instructions
PERMANENTLY delete variants from a product, along with their inventory items. This CANNOT be undone.
A product must keep at least one variant — deleting all of them fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true — confirms this permanent deletion is intended | |
| productId | Yes | Product GID | |
| variantIds | Yes | Variant GIDs to delete |