commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Product → Delete Product by ID

AI-generated

Summary

Delete a commercetools product by its unique Product ID and required version number to ensure concurrency control.

Inputs

  • Product ID (required) — The unique identifier of the product to delete.
  • Version (required) — The current version number of the product to enforce version matching for deletion.

Output shape

a JSON object representing the deleted product or an error object if deletion fails

Deletion requires both Product ID and version number inputs. The response contains details of the deleted product or error information if the operation does not succeed.

Examples

Example 1: Remove a specific product by providing its Product ID and the latest version to prevent conflicts.

Set the resource to Product, operation to Delete Product by ID, provide the Product ID and version parameters per the required product to be deleted.

Links

Discussion