Reinstall the Magento software
This section discusses how to uninstall and then reinstall the Magento software with the latest version.
To reinstall the Magento software:
Log in to your Magento server as a user with permissions to modify files in the Magento file system (for example, the web server user).
Enter the following commands in the order shown:
git pull origin develop
php bin/magento setup:uninstall
If git pull origin develop fails, see troubleshooting.
To use your existing Magento software version , omit the git pull origin develop command.
Install the Magento software:
Install the Magento software using the command line
Install the Magento software using the Setup Wizard
Uninstall the Magento software
Uninstalling the Magento software drops and restores the database, removes the deployment configuration, and clears directories under var.
To uninstall the Magento software, enter the following command:
The following message displays to confirm a successful uninstallation: