Deleting a product variation
Learn how to delete a product programmatically.
Last updated
Was this helpful?
Learn how to delete a product programmatically.
Last updated
Was this helpful?
The following request deletes the specified product variation. To delete a product variation for a particular base product, you must provide the variationProductId
or variationERID
. If the request finds multiple products associated with the variationERID
, the response will delete all of them.
The following example deletes a specific product variation with a productId
.
An ERID request requires the x-erid-as-pid=true
header.
When you delete a product variation, that product variation will no longer appear associated with the base product in Global Commerce.
Sign in to Global Commerce.
Select Catalog, select Products, and then click Manage Products. The Products page appears.
Click the Search tab, select Product from the Search In drop-down list, and choose ID from the Search By list. In the Search For field, enter the product identifier or ERID for the base product, then click Search.
Click the link for the base product under the Internal Product Name column. The Edit Product page appears.
Click the Details tab and verify the deleted product variation no longer appears under the Choose a Product column.