commercetools icon

commercetools

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

Actions671

Attribute-group → Delete AttributeGroup by Key

AI-generated

Summary

Delete an AttributeGroup resource in commercetools by specifying its unique key and the expected version number to ensure concurrency control.

Inputs

  • Attribute-group Key (required) — The unique key identifying the AttributeGroup to delete.
  • Version (required) — The current version number of the AttributeGroup to ensure the delete operation targets the correct resource version.

Output shape

a single JSON object representing the deleted AttributeGroup or error information

The operation requires the key and version; it performs a DELETE request and returns the deleted resource data upon success. On failure, throws an error containing API response details.

Examples

Example 1: Delete an AttributeGroup with key 'colorAttributes' at version 3

Set 'Attribute-group Key' to 'colorAttributes' and 'Version' to 3.

Links

Discussion