volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

AI OnAI Offsmart_toy

EPiserver Commerce Deleting Product in Code

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

Thanks

#205214
Jul 02, 2019 0:59
error 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.