Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

EPiserver Commerce Deleting Product in Code

Vote:
 

Hi

Could someone please provide us the code for deleting products in code.

We need to create a scheduled task which picks some expired products and deletes them from the catalogue.

Thanks

Kind Regards

Sandeep

#205154
Jul 01, 2019 9:30
Vote:
 

You can use IContentRepository.Delete(catalogContentLink, true) as with normal CMS content

#205166
Jul 01, 2019 12:17
Vote:
 

Thanks

#205214
Jul 02, 2019 0:59
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.