# Delete an order

Method : <mark style="color:green;">**DELETE**</mark>

{% code fullWidth="false" %}

```url
https://admin.vucustom.com/api/:api_version/orders?id=&order_number=
```

{% endcode %}

URL Parameters

<table><thead><tr><th width="187">Field Name</th><th>Description</th></tr></thead><tbody><tr><td>id</td><td>system generated order ID</td></tr><tr><td>account_number</td><td>Unique identifier which was provided from an external source. </td></tr></tbody></table>

<details>

<summary>Example Request</summary>

```url
curl --location --request DELETE 'https://admin.vucustom.com/api/v1/sold_to_accounts?id=&account_number='
```

</details>

{% tabs %}
{% tab title="200" %}
**`200 Successful response example`**

```json
{}
```

{% endtab %}

{% tab title="401 " %}
**`401 Unauthorized`**

`The client doesn’t have correct authentication credentials.`

```
{
"errors": "[API] Invalid API key or secret (unrecognized login or wrong password)"
}
```

{% endtab %}

{% tab title="422" %}
**`422 Unprocessable Entity`**
{% endtab %}

{% tab title="5xx" %}
**`5xx Errors`**

`An internal error occurred in VU Admin.`
{% endtab %}
{% endtabs %}
