# ImportBusinessEntitiesController_DeleteBusinessEntity

Delete unlocked or unused business entities and associated business accounts.

`DELETE /api/v1/ImportBusinessEntities/DeleteBusinessEntity`

**API:** Excise Platform API
**Tag:** ImportBusinessEntitiesController
**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/ImportBusinessEntitiesController/ImportBusinessEntitiesController_DeleteBusinessEntity/

## Description

Permanently deletes a business entity and its associated business accounts by the entity's unique identifier.
The entity must belong to the current master company and must not be locked or in use by profiles,
scenarios, or business profile details. Associated location cross-references and comments are also deleted.

## 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. |
| `businessEntityId` | integer | query | Yes | The unique identifier of the business entity to delete. |

## Responses

| Status | Description | Schema |
|---|---|---|
| 200 | Returns a message indicating the result of the delete operation. |  |
| 400 | The business entity 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/ImportBusinessEntities/DeleteBusinessEntity" \
  -H "Authorization: Basic <credentials>" \
  -H "Accept: application/json"
```