delete - Product Module Reference
BetaThis documentation provides a reference to the delete method. This belongs to the Product Module.
This method is used to delete products. Unlike the softDelete method, this method will completely remove the products and they can no longer be accessed or retrieved.
Example
Parameters
productIds
string[]RequiredThe IDs of the products to be deleted.
sharedContext
ContextA context used to share resources, such as transaction manager, between the application and the module.
sharedContext
ContextReturns
Promise
Promise<void>RequiredResolves when the products are successfully deleted.
Was this section helpful?