diff --git a/plugins/commands/destroy/command.rb b/plugins/commands/destroy/command.rb index 2a1dc5408..3b245f035 100644 --- a/plugins/commands/destroy/command.rb +++ b/plugins/commands/destroy/command.rb @@ -3,6 +3,7 @@ module VagrantPlugins class Command < Vagrant.plugin("2", :command) def execute options = {} + options[:force] = false opts = OptionParser.new do |o| o.banner = "Usage: vagrant destroy [vm-name]" @@ -19,7 +20,7 @@ module VagrantPlugins @logger.debug("'Destroy' each target VM...") with_target_vms(argv, :reverse => true) do |vm| - vm.action(:destroy) + vm.action(:destroy, :force_confirm_destroy => options[:force]) end # Success, exit status 0