Showing results for 
Search instead for 
Did you mean: 

Another way to delete sample datas?

Another way to delete sample datas?

I removed sample data by using ssh command bin/magento sampledata:remove . After completed the deletion process i can't  see any changes on my site . Only the product images got deleted . All the sample products , orders, cart and catalog rules are still available on backend . Is there any other way to delete sample datas completely from the site ?


Re: Another way to delete sample datas?

Hi @tran_ha6,


I didn't tried but following the documentation you can remove the module but not the data into the database:


Also, the remove command description says: "Remove all sample data packages from composer.json"


Finally, the isn't an uninstall script for the module so... I guess you can't remove the data from the database tables.

If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"