deleteProduct( )


Deletes a product.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Stores - all permissions
Manage Products
Learn more about app permissions.
Method Declaration
Copy
function deleteProduct(_id: string): Promise<void>;
Method Parameters
_idstringRequired

ID of the product to delete.

JavaScript
import { products } from "@wix/stores"; async function deleteProduct(id) { const response = await products.deleteProduct(id); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?