Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Konrad Pilch
Konrad Pilch
2,435 Points

How to reset Vagrant and Homestead? (I need to re-install it, so it's like brand new)

HI,

So iv been messing around with these two, practicing, but with the practice i was runing commands all over the place. Now theres a big mess.

How do i uninstall it or whipe it all out so it's like brand new?

I tried the vagrant website but i have no idea if that worked, probably not.

I need to get a fresh start on vagrant and homestead.

Im doing laravel.

1 Answer

Uninstalling Vagrant should be what you are looking for. I'm not sure about homestead.

Konrad Pilch
Konrad Pilch
2,435 Points

Yes, iv tried that. I don't think it worked. I can still see it there.

Konrad Pilch
Konrad Pilch
2,435 Points

Okay, im just very confused xd

Konrad Pilch
Konrad Pilch
2,435 Points

How do i uninstall homestead? the vagrant file is there, but the vagrant istelf is not there? because the commands for vagrant don't work but in the ls it's there uhh

You've done this step?:

On all platforms, remove the ~/.vagrant.d directory to delete the user data. When debugging, the Vagrant support team may ask you to remove this directory. Before removing this directory, please make a backup.

Removing that directory should remove all your user data that you've accumulated from doing all those commands.

Konrad Pilch
Konrad Pilch
2,435 Points

Ahhh, I'm all over the place.

So I did run this

rm -rf /Applications/Vagrant
rm -f /usr/local/bin/vagrant
sudo pkgutil --forget com.vagrant.vagrant

And if I'm correct, the last one worked, i did it yesterday.

And Iv been putting commands in my root, and everywhere which made a mess into it.

I need to uninstall everything and have it like if it's brand new. I'm using this for laravel projects, and they are still there which i though they were ment to be deleted. Do i need any backup? I don't hink i have anything i even want to backup.

On all platforms? I think i did this too .vagrant.d somewhere, not sure.

Konrad Pilch
Konrad Pilch
2,435 Points

Iv tried that too but I can still get into homestead and can still see the yami file.

and this is what i get

➜  ~ composer remove laravel/homestead


  [RuntimeException]
  Could not read ./composer.json
  file_get_contents(./composer.json): failed to open stream: No such file or
  directory


remove [--dev] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--no-update-with-dependencies] [--ignore-platform-reqs] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...

➜  ~ cd Homestead
➜  Homestead git:(master)

So im in root, the hoomestead should go away, and i can log in to the homestead : p iv tried all.

Hmm, I'm not sure I can help you there. Continue Googling and maybe you will stumble upon what you need or maybe somebody will drop by that knows how to fix the issue. I would recommend editing your original thread just so anybody who comes can see the new information.

Good luck. :)

Konrad Pilch
Konrad Pilch
2,435 Points

Thank you! :) These things aren't fun xd at least when a thing like this cappens, overall vagrant is cool.