Deletes a non-automated earning rule.
function deleteLoyaltyEarningRule(
_id: string,
options: DeleteLoyaltyEarningRuleOptions,
): Promise<void>;
ID of the earning rule to delete.
import { earningRules } from "@wix/loyalty";
async function deleteLoyaltyEarningRule(id, options) {
const response = await earningRules.deleteLoyaltyEarningRule(id, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.