# deleteAttribute

## Overview

Permanently removes an attribute definition that has no product assignments.

## Modules Commands Used

- `product-management.DeleteProductAttribute` — checks for existing product assignments before deleting the attribute definition

## Exception Handling

| Error Code | Description |
| --- | --- |
| ATTRIBUTE_NOT_FOUND | No attribute exists with the given ID |
| ATTRIBUTE_IN_USE | The attribute cannot be deleted because it is assigned to one or more products |
