Closed Ricky-Tigg closed 10 months ago
Hey there @Ricky-Tigg ! Thanks for the detailed report.
The reason for the ID here is because that machine likely exists else where on disk, and trying to run destroy on the name would be invalid (or the wrong guest). So running destroy on the ID will make it work anywhere, and also help users identify which box it is if they check global-status
.
I think putting too much information though in this message will be an overload of text, and explaining the use-case of why the ID is shown is too much additional information. Also generally I don't think placing documentation URLs in output is a good idea. It's easy for those to become stale and direct folks to dead URLs.
I'm happy though to improve the destroy documentation to explain the reasoning behind using the ID there instead of name. Thanks!
Vagrant 2.2.6 Enhancement request: Reveal the use-case of mention
default (ID: ...)
as part of output fromvagrant box remove [name]
Goal: to keep on my system an image file downloaded as result of
vagrant up
and to remove things set by Vagrant. I conceived those actions had to rely on executions ofvagrant box remove [name]
andvagrant destroy [name]
. Order not specified in on-line documentation.Actual result: It seemed to me that the presence of
default (ID: ...)
must have a purpose. Without further relevant instruction in the output fromvagrant box remove [name]
, It always seem wiser having to rely on an elaborated documentation, defining 'vagrant destroy [name|id]' as syntax. Thusvagrant destroy [name]
wasl executed.Expected: To serve other users as well, an up-to-date instruction of that output, would be as model: "We recommend destroying these environments first, using command 'vagrant destroy [ID]' instead of the 'vagrant destroy [name]' command as well suggested as usable in documentation at https://www.vagrantup.com/docs/cli/destroy.html."
That aspect was reported first to Red Hat, i then: received a proper information about that use-case: