# ImportItemCodesController_DeleteItemCode

Deletes an item code.

`DELETE /api/v1/ImportItemCodes/DeleteItemCode`

**API:** Excise Platform API
**Tag:** ImportItemCodesController
**API Version:** v1
**Base URL:** https://excise.avalara.com
**Accepts:** `text/plain`
**Authentication:** Basic (username + license key)

Source: https://developer.avalara.com/products/excise/api/methods/ImportItemCodesController/ImportItemCodesController_DeleteItemCode/

## Description

Permanently deletes an item code by its unique identifier. The item code must belong to the current
master company and must not be locked.

## Parameters

| Name | Type | In | Required | Description |
|---|---|---|---|---|
| `x-company-id` | integer | header | Yes | Company ID that owns the data. |
| `X-Avalara-Client` | string | header | No | Identifies the software you are using to call this API. For more information on the client header, see Client Headers. |
| `itemCodeId` | integer | query | Yes | The unique identifier of the item code to delete. |

## Responses

| Status | Description | Schema |
|---|---|---|
| 200 | Returns a message indicating the result of the delete operation. |  |
| 400 | The item code was not found, does not belong to the current company, or is locked. |  |

## Example Request

```bash
curl -X DELETE "https://excise.avalara.com/api/v1/ImportItemCodes/DeleteItemCode" \
  -H "Authorization: Basic <credentials>" \
  -H "Accept: application/json"
```