Is there a way to remove sample data in Magento2 without uninstalling/re-installing Magento?
because I have changed settings in my back-end. and that I don't want to be removed.
But need to Remove all sample data also from back-end Like products categories and customers Etc.
Best Answer
Run this in the console
bin/magento sampledata:reset
Please make sure take a backup of your db.
Enter the following command for remove:
bin/magento sampledata:remove
Wait while sample data is removed.
For more See here.