> 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: catalogV3 # Namespace: CatalogApi # Method link: https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/delete-product.md ## Permission Scopes: Product write in v3 catalog: SCOPE.STORES.PRODUCT_WRITE ## Introduction Deletes a product. --- ## REST API ### Schema ``` Method: deleteProduct Description: Deletes a product. URL: https://www.wixapis.com/stores/v3/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 product ```curl curl -X DELETE \ 'https://www.wixapis.com/stores/v3/products/d17bb5c4-e10f-4b83-ae97-f27f2edc18f1' \ -H 'Content-Type: application/json' \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.catalogV3.CatalogApi.deleteProduct(productId) Description: Deletes a product. # 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 { productsV3 } from '@wix/stores'; async function deleteProduct(productId) { const response = await productsV3.deleteProduct(productId); }; ``` ### deleteProduct (with elevated permissions) ```javascript import { productsV3 } from '@wix/stores'; import { auth } from '@wix/essentials'; async function myDeleteProductMethod(productId) { const elevatedDeleteProduct = auth.elevate(productsV3.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 { productsV3 } from '@wix/stores'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { productsV3 }, // Include the auth strategy and host as relevant }); async function deleteProduct(productId) { const response = await myWixClient.productsV3.deleteProduct(productId); }; ``` ---