This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Deletes a tax group.
If a tax group is deleted but the taxGroupId
is still assigned to a Stores product then the default tax group is used to calculate tax.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
function deleteTaxGroup(taxGroupId: string): Promise<void>;
ID of the tax group to delete.
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
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.