> 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 # DeleteRibbon # Package: catalogV3 # Namespace: RibbonService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/ribbons-v3/delete-ribbon.md ## Permission Scopes: Ribbon write in v3 catalog: SCOPE.STORES.RIBBON_WRITE ## Introduction Deletes a ribbon. > **Note:** Deleting a ribbon will also remove it from all products it is assigned to. --- ## REST API ### Schema ``` Method: deleteRibbon Description: Deletes a ribbon. > **Note:** Deleting a ribbon will also remove it from all products it is assigned to. URL: https://www.wixapis.com/stores/v3/ribbons/{ribbonId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: ribbonId Method parameters: param name: ribbonId | type: none | required: true Return type: DeleteRibbonResponse EMPTY-OBJECT {} ``` ### Examples ### Delete a ribbon ```curl curl -X DELETE \ 'https://www.wixapis.com/stores/v3/ribbons/2254c3b3-6bbd-457d-b868-9122657c5d1c' \ -H 'Content-type: application/json' \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.catalogV3.RibbonService.deleteRibbon(ribbonId) Description: Deletes a ribbon. > **Note:** Deleting a ribbon will also remove it from all products it is assigned to. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: ribbonId Method parameters: param name: ribbonId | type: string | description: Ribbon GUID. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteRibbon ```javascript import { ribbonsV3 } from '@wix/stores'; async function deleteRibbon(ribbonId) { const response = await ribbonsV3.deleteRibbon(ribbonId); }; ``` ### deleteRibbon (with elevated permissions) ```javascript import { ribbonsV3 } from '@wix/stores'; import { auth } from '@wix/essentials'; async function myDeleteRibbonMethod(ribbonId) { const elevatedDeleteRibbon = auth.elevate(ribbonsV3.deleteRibbon); const response = await elevatedDeleteRibbon(ribbonId); } ``` ### deleteRibbon (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { ribbonsV3 } from '@wix/stores'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { ribbonsV3 }, // Include the auth strategy and host as relevant }); async function deleteRibbon(ribbonId) { const response = await myWixClient.ribbonsV3.deleteRibbon(ribbonId); }; ``` ---