1

I have installed sample data in magento 2, due to power failures of system its stop in between. Later I saw, there were showing all categories and Products almost installed.

But at home page not seem any banner or product sliders.

I tried to install it again but it shown message associated email is already exist.

enter image description here

How I can re-install it via CLI ?

Praful Rajput
  • 367
  • 3
  • 12

2 Answers2

2

Remove sample data in magento 2.0.0 using cli

(this will not remove the data from the database as stated here http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli-sample-data-other.html)

bin/magento sampledata:remove 

and for update sample data :

bin/magento sampledata:reset 
vitoriodachef
  • 113
  • 10
zed Blackbeard
  • 760
  • 12
  • 30
0

There is no CLI command to uninstall the sample data. To do it you must drop the Magento 2 database. You can use magento setup:uninstall to do that.

Be careful that sample-data is not in composer.json or sample data might install again.

Steve Johnson
  • 369
  • 1
  • 3