---
title: "Delete a tax code · Taxes · COUNT Partner API"
description: "Deletes a tax code. DELETE /partners/taxes/{uuid}"
canonical: "https://developers.getcount.com/reference/taxes/delete-tax"
source: "https://developers.getcount.com/reference/taxes/delete-tax"
---
[Taxes](https://developers.getcount.com/reference/taxes) / Delete a tax code

# Delete a tax code

DELETE `/partners/taxes/{uuid}`

Deletes a tax code.

The code is removed from every product that carries it and its own `Tax: <name>` account is made inactive; documents that already use it keep it. The shared US Sales Tax Payable parent account stays active. To keep the code but stop offering it, update it with `enabled: false` instead.

HMAC signature + Bearer access token

[Try this request](https://developers.getcount.com/tools/try-it?method=DELETE&path=%2Fpartners%2Ftaxes%2F%7Buuid%7D)

[Transactions API](https://developers.getcount.com/reference/transactions) [Invoices API](https://developers.getcount.com/reference/invoices) [Bills API](https://developers.getcount.com/reference/bills)

#### Path parameters

`uuid` uuid required

The tax UUID, the `id` from List tax codes.

#### Responses

`203` The tax code was deleted.

`400` The code is a system code COUNT manages.

`404` No tax code with that UUID in the workspace, or it has already been deleted.

`401` Missing or invalid HMAC signature, expired timestamp, or invalid Bearer token. [Troubleshoot](https://developers.getcount.com/getting-started/errors#error-401)

`403` The credential does not have access to this workspace or resource. [Troubleshoot](https://developers.getcount.com/getting-started/errors#error-403)

`429` Rate limit exceeded (100 requests per minute per user of each app, or 10,000 per minute per app). Retry after the Retry-After header. [Troubleshoot](https://developers.getcount.com/getting-started/errors#error-429)

[Previous PATCH Update a tax code](https://developers.getcount.com/reference/taxes/update-tax) [Next GET Look up a US sales tax rate](https://developers.getcount.com/reference/taxes/get-sales-tax-rate)

DELETE `https://api.getcount.com/partners/taxes/{uuid}`

Request

```javascript
import crypto from 'node:crypto';

const BASE_URL = 'https://api.getcount.com';
const CLIENT_ID = process.env.COUNT_CLIENT_ID;
const CLIENT_SECRET = process.env.COUNT_CLIENT_SECRET;
const ACCESS_TOKEN = process.env.COUNT_ACCESS_TOKEN;

const method = 'DELETE';
const signingPath = '/taxes/3f6c2a1e-8b4d-4e7a-9c2f-1d5e8a7b6c40';
const timestamp = Math.floor(Date.now() / 1000).toString();
const bodyString = '';

const bodyHash = '';
const baseString = `${method}:${signingPath}:${timestamp}:${bodyHash}`;
const signature = crypto.createHmac('sha256', CLIENT_SECRET).update(baseString).digest('hex');

const response = await fetch(`${BASE_URL}/partners/taxes/3f6c2a1e-8b4d-4e7a-9c2f-1d5e8a7b6c40`, {
  method,
  headers: {
    'x-client-id': CLIENT_ID,
    'x-timestamp': timestamp,
    'x-signature': signature,
    Authorization: `Bearer ${ACCESS_TOKEN}`,
  },
});

console.log(await response.json());
```

Response · 203

```json
{
  "status": "success",
  "message": "Success on deleting tax"
}
```
