> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: deleteTier(tierId: string, revision: string) # Method package: wixLoyaltyV2 # Method menu location: wixLoyaltyV2 --> tiers --> deleteTier # Method Link: https://dev.wix.com/docs/velo/apis/wix-loyalty-v2/tiers/delete-tier.md # Method Description: Deletes a loyalty tier. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Delete a tier (export from backend code) ```javascript import { tiers } from "wix-loyalty.v2"; import { webMethod, Permissions } from "wix-web-module"; import { elevate } from "wix-auth"; /* Sample parameter values: * * { * "tierId": "0a429348-48c3-4085-a889-6858f33ce78a", * "revision": "2" * } */ const elevatedDeleteTier = elevate(tiers.deleteTier); export const deleteTier = webMethod( Permissions.Anyone, async (tierId, revision) => { try { const result = await elevatedDeleteTier(tierId, revision); return result; } catch (error) { console.error(error); // Handle the error } }, ); ``` ## Delete tier (dashboard page code) ```javascript import { tiers } from "wix-loyalty.v2"; /* Sample parameter values: * * { * "tierId": "0a429348-48c3-4085-a889-6858f33ce78a", * "revision": "2" * } */ async function deleteTier(tierId, revision) { try { const result = await tiers.deleteTier(tierId, revision); return result; } catch (error) { console.error(error); // Handle the error } } ``` ---