Triggered when an earning rule is deleted.
function onLoyaltyEarningRuleDeleted(handler: function): void;
handler(event: LoyaltyEarningRuleDeletedEnvelope): void | Promise<void>
import { earningRules } from "@wix/loyalty";
earningRules.onLoyaltyEarningRuleDeleted((event) => {
// handle your event here
});