# deleteProduct

## Overview

Permanently removes a product record that has no associated transactions or variants.

## Modules Commands Used

- `product-management.DeleteProduct` — checks for dependent records and deletes the product if none exist

## Exception Handling

| Error Code | Description |
| --- | --- |
| PRODUCT_NOT_FOUND | No product exists with the given ID |
| DELETE_NOT_ALLOWED | The product cannot be deleted because it has active variants or transaction history |
