Skip to main content

Delete Variation Option

Delete a variation option from a store product.

Endpointโ€‹

DELETE /v1/store-products/{id}/variation-options/{optionId}

Authenticationโ€‹

Requires an API key with the store:write scope.

Parametersโ€‹

ParameterTypeLocationDescription
idintegerpathThe store product ID
optionIdintegerpathThe variation option ID

Responseโ€‹

Success (204 No Content)โ€‹

No response body.

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
401invalid_api_keyInvalid API key
403insufficient_scopeAPI key lacks store:write scope
404resource_not_foundStore product or variation option does not exist
422variations_existCannot delete option because product has existing variations
caution

You must delete all product variations before you can delete a variation option. Use the Delete Variation endpoint to remove variations first.

Example Requestโ€‹

curl -X DELETE "https://app.equipdash.com/api/v1/store-products/1/variation-options/1" \
-H "Authorization: Bearer eqd_live_abc123xyz789..."