cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2: Unable to uninstall sample data in localhost

Magento 2: Unable to uninstall sample data in localhost

 

I have already databse imported to my localhost but I need to uninstall sample data while exciting this command: PHP bin/magento sampledata:remove from my localhost with the following below link: 

https://devdocs.magento.com/guides/v2.3/install-gde/install/cli/install-cli-sample-data-other.html 

 

bin/magento sampledata:remove

 

Here is the snapshot is for your reference.

sampleData_error.png

2 REPLIES 2

Re: Magento 2: Unable to uninstall sample data in localhost

@BYK 

 

In your Magento root folder, you will found auth.json.sample just rename it to auth.json and add your public and private key from your marketplace account.

 

For more you can refer this:

https://www.mageplaza.com/devdocs/magento-2-install-uninstall-sample-data.html

 
Manish Mittal
https://www.manishmittal.com/

Re: Magento 2: Unable to uninstall sample data in localhost

@Manish Mittal 

I have updated the file auth.json file with the latest keys and executed CLI commands but sill no luck.

 

localHostSampData.png

 

Imported the recent database.

m2database.png