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.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
function bulkDeleteRules(
ruleIds: Array<string>,
): Promise<BulkDeleteRulesResponse>;
IDs of the rules to delete.
import { serviceFees } from "wix-restaurants.v2";
async function bulkDeleteRules(ruleIds) {
try {
const result = await serviceFees.bulkDeleteRules(ruleIds);
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.