> 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: clearPrimary() # Method package: wixPricingPlansBackend # Method menu location: wixPricingPlansBackend --> clearPrimary # Method Link: https://dev.wix.com/docs/velo/apis/wix-pricing-plans-backend/clear-primary.md # Method Description: Sets all pricing plans as not primary. The `clearPrimary()` function returns a Promise that resolves when no pricing plan is marked as a primary plan. After clearing the primary plan, when viewing pricing plans on the site, no plan is highlighted with a customizable ribbon. Only users with "Manage Pricing Plans" [permissions](https://support.wix.com/en/article/roles-permissions-accessing-roles-permissions) can clear the primary plan. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Make no plans primary, clearing the highlight and the ribbon on the site ```javascript import { Permissions, webMethod } from 'wix-web-module'; import wixPricingPlansBackend from 'wix-pricing-plans-backend'; export const myClearPrimaryFunction = webMethod(Permissions.Anyone, () => { return wixPricingPlansBackend.clearPrimary() .then(() => { // No pricing plans are set as primary. This means // no plans are highlighted with a custom ribbon // when displayed on the site. console.log("No plans are highlighted on the site"); }) .catch((error) => { console.error(error); }); }); // Returns a promise that resolves to void ``` ---