cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete all pages products in form admin?

How to delete all pages products in form admin?

 have 20k products. And I want to remove all the products via bulk operation in magento admin. But it's only delete the current page products only. Not all of. Can you guys please help us to delete all of them?

 

I am aware how to delete it form database query. But my client want to delete all the products from magento admin.

 

Thanks you in advance!

6 REPLIES 6

Re: How to delete all pages products in form admin?

Hi @m2expdeveloper,

When you select products from admin product grid then it shows two options in the drop-down.

You need to select "Select All", instead of "Select all on this page".

Attachment attached for the reference.

pasted_image.png

I hope it will help you!

Re: How to delete all pages products in form admin?

I do "Select All" option already and it's not deleted all the products.

Re: How to delete all pages products in form admin?

@m2expdeveloper 
How many products showing selected after "Select all" option?

Option2 : Delete from Database table "catalog_product_entity"

Option 3: Delete from Custom script

https://www.tutorialsplane.com/magento-2-delete-products-programmatically/

Re: How to delete all pages products in form admin?

If it is showing correct number after select and delete few only then there may be memory_limit and execution time issue as well.

you can add following lines in index.php of the root folder.

ini_set("memory_limit","-1");i

ini_set("max_execution_time",0);

Re: How to delete all pages products in form admin?

I want to delete form magento admin not from database.

Re: How to delete all pages products in form admin?

@m2expdeveloper you can delete all the products by selecting the option "Select All" as suggested by @Vimal Kumar .

 

Your all products are not deleted because you might have select something in filters so before deleting reset the filter and then try to delete all the products using "Select All" option.

 

If you found useful "Accept it as Solution".

 

Thanks