Deletes a reward.
function deleteReward(_id: string, revision: string): Promise<void>;
ID of the reward to delete.
Revision number, which increments by 1 each time the reward is updated.
To prevent conflicting changes, the current revision
must be passed when deleting the reward.
import { rewards } from "@wix/loyalty";
async function deleteReward(id, revision) {
const response = await rewards.deleteReward(id, revision);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.