Delete a Product Option

Overview

This endpoint allows you to delete a product option from your system.

DELETE /api/options/{option_id}

Request Format

Send a DELETE request to the options endpoint with the option ID in the URL path:

DELETE /api/options/27

This request will delete the product option with ID 27 from your system.

Response Format

Status Code Description
204 No Content The option has been deleted successfully.
400 Bad Request The option couldn't be deleted (e.g., it's in use by products).
404 Not Found The specified option doesn't exist.
Note: Deleting a product option will also remove its associations with any products. Make sure the option is not required for your active products before deletion.