Skip to main content
Skip to main content
You're viewing the documentation for v1, which isn't the latest Medusa version.Latest documentation

delete - Product Module Reference

Beta

This 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​

await productModuleService.delete(["prod_123", "prod_321"])

Parameters​

productIdsstring[]Required
The IDs of the products to be deleted.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns​

PromisePromise<void>Required
Resolves when the products are successfully deleted.
Was this section helpful?