I'm using vagrant to stand up some development environments. I have vagrant create a synced folder on the host machine. I have chef git-clone a project into the corresponding folder on the guest machine. This project then obviously appears in the synced folder on the host machine. All good...
However, if I need to destroy the vagrant instance, the synced folder and project still exists on the host machine. I find it best to delete this folder before I vagrant up
again to avoid unexpectedly altering the freshly cloned project. Of course, I often forget to do this and it wastes a lot of time.
My question:
Can and how do I configure vagrant to delete the synced folder on the host machine when I execute vagrant up
?