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

# Delete an attribute

`DELETE /catalog/attributes/{id}`

## Request

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

Deletes a user-defined attribute. Returns HTTP 403 for system attributes, HTTP 409 if the attribute is used in attribute families.

## Path parameters

- `id` integer, required

## Response `200`

Attribute deleted.

## Other responses

- `403`: System attribute — cannot delete.
- `404`: Not found
- `409`: Attribute is part of one or more attribute families.

---

[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)
