free
web stats

Fill the form & Get Installation Support

We don't monkey around your business.

GET IN TOUCH WITH US NOW





Guide to remove or delete products of a particular attribute set in Magento 2.

In this guide, I am going to show you, how to remove the product of a particular attribute set in Magento 2 programmatically?

First of all, you have to create a file called “deleteProducts.php” on Magento 2 root directory.

And then paste the below code into that file.

And now you can run this file through cronjob and URL.

So the URL will be like this : http://yourdomainname/deleteProducts.php

That’s it.

I hope my post is helpful. If you still need any assistance about that, please comment below.