commercetools icon

commercetools

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

Actions671

State → Delete State by ID

AI-generated

Summary

Delete a state resource from commercetools by specifying its unique State ID and current version number.

Inputs

  • State ID (required) — The unique identifier of the state to delete.
  • Version (required) — The current version number of the state resource to ensure concurrency control during deletion.

Output shape

a single JSON object with details of the deleted state resource or an error response

The operation requires the State ID and version; it returns the deleted resource data on success or an error object if the operation fails.

Examples

Example 1: Deleting a state resource

Provide the State ID and the version corresponding to the current resource version to perform the deletion.

Links

Discussion