> 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 # DeleteLabel # Package: items # Namespace: RestaurantsMenusItemLabels # Method link: https://dev.wix.com/docs/api-reference/business-solutions/restaurants/menus/items/item-labels/delete-label.md ## Permission Scopes: Manage Restaurants - all permissions: SCOPE.RESTAURANTS.MEGA-SCOPES ## Introduction > **Note:** The Label API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new). Deletes an item label. --- ## REST API ### Schema ``` Method: deleteLabel Description: > **Note:** The Label API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new). Deletes an item label. URL: https://www.wixapis.com/restaurants/menus/v1/labels/{labelId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: labelId Method parameters: param name: labelId | type: none | required: true Return type: DeleteLabelResponse EMPTY-OBJECT {} ``` ### Examples ### Delete a label ```curl curl -X DELETE https://www.wixapis.com/restaurants/item-labels/v1/labels/657efce5-ee34-4578-bf5a-42daf5e7a9f0 \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.items.RestaurantsMenusItemLabels.deleteLabel(labelId) Description: > **Note:** The Label API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new). Deletes an item label. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: labelId Method parameters: param name: labelId | type: string | description: GUID of the item label. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteLabel ```javascript import { itemLabels } from '@wix/restaurants'; async function deleteLabel(labelId) { const response = await itemLabels.deleteLabel(labelId); }; ``` ### deleteLabel (with elevated permissions) ```javascript import { itemLabels } from '@wix/restaurants'; import { auth } from '@wix/essentials'; async function myDeleteLabelMethod(labelId) { const elevatedDeleteLabel = auth.elevate(itemLabels.deleteLabel); const response = await elevatedDeleteLabel(labelId); } ``` ### deleteLabel (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 { itemLabels } from '@wix/restaurants'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { itemLabels }, // Include the auth strategy and host as relevant }); async function deleteLabel(labelId) { const response = await myWixClient.itemLabels.deleteLabel(labelId); }; ``` ---