diff --git a/lib/vagrant/machine.rb b/lib/vagrant/machine.rb index 8147bb346..0e951e4e7 100644 --- a/lib/vagrant/machine.rb +++ b/lib/vagrant/machine.rb @@ -207,6 +207,12 @@ module Vagrant else # Delete the file, since the machine is now destroyed id_file.delete if id_file.file? + + # Delete the entire data directory contents since all state + # associated with the VM is now gone. + @data_dir.children.each do |child| + child.rmtree + end end # Store the ID locally