> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # DeleteTaxRegion # Package: tax # Namespace: TaxRegionsService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-regions/delete-tax-region.md ## Permission Scopes: Manage Orders: SCOPE.DC-STORES.MANAGE-ORDERS ## Introduction Deletes a tax region. When a tax region is deleted, tax is not calculated and zero tax will be returned for addresses in this region. --- ## REST API ### Schema ``` Method: deleteTaxRegion Description: Deletes a tax region. When a tax region is deleted, tax is not calculated and zero tax will be returned for addresses in this region. URL: https://www.wixapis.com/billing/v1/tax-regions/{taxRegionId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: taxRegionId Method parameters: param name: taxRegionId | type: none | required: true Return type: DeleteTaxRegionResponse EMPTY-OBJECT {} ``` ### Examples ### Delete Tax Region Deletes a tax region by ID ```curl curl -X DELETE \ 'https://www.wixapis.com/billing/v1/tax-regions/88a175be-7cc3-427d-bd79-d9aa21b10108' \ -H 'Content-Type: application/json' \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.tax.TaxRegionsService.deleteTaxRegion(taxRegionId) Description: Deletes a tax region. When a tax region is deleted, tax is not calculated and zero tax will be returned for addresses in this region. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: taxRegionId Method parameters: param name: taxRegionId | type: string | description: GUID of the tax region to delete. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteTaxRegion ```javascript import { taxRegions } from '@wix/ecom'; async function deleteTaxRegion(taxRegionId) { const response = await taxRegions.deleteTaxRegion(taxRegionId); }; ``` ### deleteTaxRegion (with elevated permissions) ```javascript import { taxRegions } from '@wix/ecom'; import { auth } from '@wix/essentials'; async function myDeleteTaxRegionMethod(taxRegionId) { const elevatedDeleteTaxRegion = auth.elevate(taxRegions.deleteTaxRegion); const response = await elevatedDeleteTaxRegion(taxRegionId); } ``` ### deleteTaxRegion (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { taxRegions } from '@wix/ecom'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { taxRegions }, // Include the auth strategy and host as relevant }); async function deleteTaxRegion(taxRegionId) { const response = await myWixClient.taxRegions.deleteTaxRegion(taxRegionId); }; ``` ---