> 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 # DeleteProduct # Package: suppliersHub # Namespace: MarketplaceProduct # Method link: https://dev.wix.com/docs/api-reference/business-solutions/suppliers-hub/products/delete-product.md ## Permission Scopes: Write Marketplace: SCOPE.SUPPLIERS_HUB.WRITE_MARKETPLACE ## Introduction Deletes a product permanently from the Marketplace. This action cannot be undone. The product will no longer be available for store owners to add to their stores. --- ## REST API ### Schema ``` Method: deleteProduct Description: Deletes a product permanently from the Marketplace. This action cannot be undone. The product will no longer be available for store owners to add to their stores. URL: https://www.wixapis.com/suppliers-hub/v1/products/{productId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: productId Method parameters: param name: productId | type: none | required: true Return type: DeleteProductResponse EMPTY-OBJECT {} ``` ### Examples ### Delete a product Permanently deletes a product from the Marketplace ```curl curl -X DELETE \ 'https://www.wixapis.com/suppliers-hub/v1/products/12345678-1234-1234-1234-123456789012' \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.suppliersHub.MarketplaceProduct.deleteProduct(productId) Description: Deletes a product permanently from the Marketplace. This action cannot be undone. The product will no longer be available for store owners to add to their stores. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: productId Method parameters: param name: productId | type: string | description: Product GUID. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteProduct ```javascript import { products } from '@wix/suppliers-hub'; async function deleteProduct(productId) { const response = await products.deleteProduct(productId); }; ``` ### deleteProduct (with elevated permissions) ```javascript import { products } from '@wix/suppliers-hub'; import { auth } from '@wix/essentials'; async function myDeleteProductMethod(productId) { const elevatedDeleteProduct = auth.elevate(products.deleteProduct); const response = await elevatedDeleteProduct(productId); } ``` ### deleteProduct (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 { products } from '@wix/suppliers-hub'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { products }, // Include the auth strategy and host as relevant }); async function deleteProduct(productId) { const response = await myWixClient.products.deleteProduct(productId); }; ``` ---