---
title: "Delete an attribute option"
method: DELETE
path: "/catalog/attributes/{attributeId}/options/{optionId}"
tags: ["Admin Catalog: Attributes"]
---

# Delete an attribute option

`DELETE /catalog/attributes/{attributeId}/options/{optionId}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/catalog/attributes/{attributeId}/options/{optionId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/catalog/attributes/:attributeId/options/:optionId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes the given option. Returns HTTP 409 if the option is referenced by any product attribute values.

## Path parameters

- `attributeId` integer, required
- `optionId` integer, required

## Response `200`

Option deleted.

## Other responses

- `404`: Not found
- `409`: Option is in use by products.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
