> 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 # Method name: deleteTaxGroup(taxGroupId: string) # Method package: wixBillingV2 # Method menu location: wixBillingV2 --> taxGroups --> deleteTaxGroup # Method Link: https://dev.wix.com/docs/velo/apis/wix-billing-v2/tax-groups/delete-tax-group.md # Method Description: Deletes a tax group. If a tax group is deleted but the `taxGroupId` is still assigned to a product (see Stores Products API) then the default tax group is used to calculate tax. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## deleteTaxGroup example for dashboard page code ```javascript import { taxGroups } from 'wix-billing.v2'; async function deleteTaxGroup(taxGroupId) { try { const result = await taxGroups.deleteTaxGroup(taxGroupId); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## deleteTaxGroup example for exporting from backend code ```javascript import { taxGroups } from 'wix-billing.v2'; import { webMethod, Permissions } from 'wix-web-module'; import { elevate } from 'wix-auth'; const elevatedDeleteTaxGroup = elevate(taxGroups.deleteTaxGroup); export const deleteTaxGroup = webMethod( Permissions.Anyone, async (taxGroupId) => { try { const result = await elevatedDeleteTaxGroup(taxGroupId); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---