This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
The bulkDeleteRules()
function returns a Promise that resolves to the deleted rules.
To delete only one rule, use the deleteRule()
function.
function bulkDeleteRules(
ruleIds: Array<string>,
): Promise<BulkDeleteRulesResponse>;
IDs of the rules to delete.
import { serviceFees } from "@wix/restaurants";
async function bulkDeleteRules(ruleIds) {
const response = await serviceFees.bulkDeleteRules(ruleIds);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.