Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the cleanest way to remove Homestead and Vagrant from a Windows system?

I followed the instructions in Laravel docs to install Vagrant and Homestead on Windows 10, but now I've decided to move the whole development stuff to another dedicated server running Debian.

I need to fully remove Vagrant, Homestead, Composer as well as AMPPS (old stuff) from the Windows 10 desktop. It should be easy to simply uninstall Vagrant and AMPPS, but how do I go about cleaning up the remaining things?

I don't need to keep any of the code etc. I've already got that in a different location.

like image 910
aalaap Avatar asked Nov 21 '14 17:11

aalaap


People also ask

How do I remove vagrant box from Windows 10?

Simply remove the ~/. vagrant. d directory to delete the user data. If on Windows, this directory is located at C:\Users\YourUsername\.


2 Answers

Virtual Machine

Remove the homestead VM by running

vagrant box remove laravel/homestead 

Homestead

If you installed Homestead via composer with the following command:

composer global require laravel/homestead 

run the opposite to remove it:

composer remove laravel/homestead 

This will remove the .composer/vendor/laravel directory, including its 'homestead' subdirectory. The 'global' keyword is not required.

On a Mac or Linux system, the Homestead configuration files can be removed by deleting the '~/.homestead' directory. You may need to hunt a little to find the directory on your Windows system. Don't worry too much if you can't find it; the directory is small and innocuous.


Composer

Composer is usually installed as a Windows application; check Add/Remove programs (or the Windows 10 equivalent) to uninstall it.

If you installed Composer manually and it does not appear in your list of installed apps, simply remove the 'composer' binary and the configuration directory (~/.composer on Mac/Linux systems).

like image 178
George Cummins Avatar answered Oct 06 '22 21:10

George Cummins


Step 1: Get a list of all installed boxes using

$ vagrant box list 

Step 2: Run vagrant remove command, specify the box name, version, and provider for example

$ vagrant box remove laravel/homestead --box-version=0.4.4 --provider=virtualbox 
like image 41
terdia07 Avatar answered Oct 06 '22 19:10

terdia07