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 region.
When a tax region is deleted, tax is not calculated and zero tax will be returned for addresses in this region.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
function deleteTaxRegion(taxRegionId: string): Promise<void>;
ID of the tax region to delete.
import { taxRegions } from "wix-billing.v2";
async function deleteTaxRegion(taxRegionId) {
try {
const result = await taxRegions.deleteTaxRegion(taxRegionId);
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.