> 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 # DeleteModifier # Package: items # Namespace: ModifiersService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/restaurants/menus/items/item-modifiers/delete-modifier.md ## Permission Scopes: Manage Restaurants - all permissions: SCOPE.RESTAURANTS.MEGA-SCOPES ## Introduction > **Note:** The Item modifier 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 modifier. --- ## REST API ### Schema ``` Method: deleteModifier Description: > **Note:** The Item modifier 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 modifier. URL: https://www.wixapis.com/v1/modifiers/{modifierId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: modifierId Method parameters: param name: modifierId | type: none | required: true Return type: DeleteModifierResponse EMPTY-OBJECT {} ``` ### Examples ### Delete an item modifier ```curl curl -X DELETE https://wixapis.com/restaurants/item-modifiers/v1/modifiers/cbbf4358-292c-4e9e-a820-7e75b4551120 \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.items.ModifiersService.deleteModifier(modifierId) Description: > **Note:** The Item modifier 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 modifier. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: modifierId Method parameters: param name: modifierId | type: string | description: GUID of the item modifier to delete. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteModifier ```javascript import { itemModifiers } from '@wix/restaurants'; async function deleteModifier(modifierId) { const response = await itemModifiers.deleteModifier(modifierId); }; ``` ### deleteModifier (with elevated permissions) ```javascript import { itemModifiers } from '@wix/restaurants'; import { auth } from '@wix/essentials'; async function myDeleteModifierMethod(modifierId) { const elevatedDeleteModifier = auth.elevate(itemModifiers.deleteModifier); const response = await elevatedDeleteModifier(modifierId); } ``` ### deleteModifier (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 { itemModifiers } from '@wix/restaurants'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { itemModifiers }, // Include the auth strategy and host as relevant }); async function deleteModifier(modifierId) { const response = await myWixClient.itemModifiers.deleteModifier(modifierId); }; ``` ---