> 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 # DeleteBackInStockNotificationRequest # Package: backInStock # Namespace: BackInStockNotificationRequestService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/other-services/back-in-stock/back-in-stock-notifications/delete-back-in-stock-notification-request.md ## Permission Scopes: Manage Stores - all permissions: SCOPE.DC-STORES-MEGA.MANAGE-STORES ## Introduction Deletes a back in stock notification request. --- ## REST API ### Schema ``` Method: deleteBackInStockNotificationRequest Description: Deletes a back in stock notification request. URL: https://www.wixapis.com/v1/back-in-stock-notification-requests/{id} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: id Method parameters: param name: id | type: none | required: true Return type: DeleteBackInStockNotificationRequestResponse EMPTY-OBJECT {} ``` ### Examples ### Delete back in stock notification request ```curl curl -X DELETE \ 'https://www.wixapis.com/back-in-stock-service/v1/back-in-stock-notification-requests/0e68fbd2-0e49-47a6-9678-58911a58339c' \ -H 'Content-type: application/json' \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.backInStock.BackInStockNotificationRequestService.deleteBackInStockNotificationRequest(_id) Description: Deletes a back in stock notification request. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: _id Method parameters: param name: _id | type: string | description: GUID of the notification request to delete. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteBackInStockNotificationRequest ```javascript import { backInStockNotifications } from '@wix/ecom'; async function deleteBackInStockNotificationRequest(_id) { const response = await backInStockNotifications.deleteBackInStockNotificationRequest(_id); }; ``` ### deleteBackInStockNotificationRequest (with elevated permissions) ```javascript import { backInStockNotifications } from '@wix/ecom'; import { auth } from '@wix/essentials'; async function myDeleteBackInStockNotificationRequestMethod(_id) { const elevatedDeleteBackInStockNotificationRequest = auth.elevate(backInStockNotifications.deleteBackInStockNotificationRequest); const response = await elevatedDeleteBackInStockNotificationRequest(_id); } ``` ### deleteBackInStockNotificationRequest (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 { backInStockNotifications } from '@wix/ecom'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { backInStockNotifications }, // Include the auth strategy and host as relevant }); async function deleteBackInStockNotificationRequest(_id) { const response = await myWixClient.backInStockNotifications.deleteBackInStockNotificationRequest(_id); }; ``` ---