Magento2 : how to reinstall magento setup?

Suresh Chikani picture Suresh Chikani · Sep 19, 2015 · Viewed 24.7k times · Source

I am installing magento2 with sample-data. all requirement is completed and the Magento installation process starts but stops after some process.

I have to wait for the complete installation process but nothing happens. so I need to restart my magento2 set-up.

how it can be done? any have an idea for reinstall the Magento set-up without deleting the current code.

Thanks.

Answer

SpaceJam picture SpaceJam · Sep 22, 2015

Use the new Magento CLI -

From the Magento Root Directory ./bin/magento setup:uninstall

Note: this will delete your database contents if you had one already set up.