{"record":{"id":"62fd81e9b6b37b90","repo":"hashicorp/vagrant","slug":"you-requested-to-remove-the-box-name-version-62fd81","errorCode":null,"errorMessage":"You requested to remove the box '%{name}' version '%{version}'\nwith provider '%{provider}' and architecture '%{architecture}' but\nthat specific architecture is not installed. Please double-check\nand try again. The available architectures are:\n\n%{architectures}","messagePattern":"You requested to remove the box '%(.+?)' version '%(.+?)'\nwith provider '%(.+?)' and architecture '%(.+?)' but\nthat specific architecture is not installed\\. Please double-check\nand try again\\. The available architectures are:\n\n%(.+?)","errorType":"exception","errorClass":"Vagrant::Errors::BoxRemoveArchitectureNotFound","httpStatus":null,"severity":"error","filePath":"lib/vagrant/action/builtin/box_remove.rb","lineNumber":105,"sourceCode":"              # Only a single provider remains\n              box_provider = box_info.values.first.keys.first\n\n              # Further filtering only matters if not removing all architectures\n              if !box_remove_all_architectures\n                # If no architecture was given, check if there are more\n                # than a single architecture for the provider in version\n                if !box_architecture && box_info.values.first.values.first.size > 1\n                  raise Errors::BoxRemoveMultiArchitecture,\n                    name: box_name,\n                    version: box_version,\n                    provider: box_provider.to_s,\n                    architectures: box_info.values.first.values.first.sort.join(\", \")\n                end\n\n                # If architecture was given, check the provider for the version has it\n                if box_architecture\n                  if !box_info.values.first.values.first.include?(box_architecture)\n                    raise Errors::BoxRemoveArchitectureNotFound,\n                      name: box_name,\n                      version: box_version,\n                      provider: box_provider.to_s,\n                      architecture: box_architecture,\n                      architectures: box_info.values.first.values.first.sort.join(\", \")\n                  else\n                    box_info.values.first.values.first.delete_if { |v| v != box_architecture }\n                  end\n                end\n              end\n            end\n          end\n\n          box_info.each do |version, provider_info|\n            provider_info.each do |provider, architecture_info|\n              provider = provider.to_sym\n              architecture_info.each do |architecture|\n                box = env[:box_collection].find(","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/lib/vagrant/action/builtin/box_remove.rb#L87-L123","documentation":"Raised by `vagrant box remove` when `--architecture X` was given but X is not among the installed architectures for that box/version/provider. The box collection data was already filtered down to the requested provider and version, so the mismatch is purely between the requested architecture string and what is on disk.","triggerScenarios":"Running `vagrant box remove NAME --provider P --version V --architecture X` where X is not in box_info's architecture list for that provider/version (lib/vagrant/action/builtin/box_remove.rb:104-111). Typical: asking for `arm64` when only `amd64` is installed, or using a synonym like `x86_64`/`aarch64` that does not match the stored name.","commonSituations":"Confusion between arch spellings (amd64 vs x86_64, arm64 vs aarch64); boxes added under older Vagrant versions that recorded a default architecture; scripts hard-coding the wrong architecture for a box added on another host.","solutions":["Read the architectures listed in the error message and re-run with exactly one of them (`--architecture amd64`).","Verify the installed architecture with `vagrant box list` before retrying.","If you just want the box gone, drop `--architecture` and use `--all-architectures` instead."],"exampleFix":"# before\nvagrant box remove generic/ubuntu2204 --provider virtualbox --architecture arm64\n# => BoxRemoveArchitectureNotFound (available: amd64)\n\n# after\nvagrant box remove generic/ubuntu2204 --provider virtualbox --architecture amd64","handlingStrategy":"validation","validationCode":"# Use an architecture that actually appears in `vagrant box list`\ninstalled=$(vagrant box list | awk -v box=\"$BOX_NAME\" -v prov=\"$PROVIDER\" '$0 ~ box\" \\(\"prov\", {print $NF}' | tr -d ')')\ncase \" $installed \" in *\" $WANT_ARCH \"*) vagrant box remove \"$BOX_NAME\" --provider \"$PROVIDER\" --architecture \"$WANT_ARCH\";; *) echo \"not installed: $WANT_ARCH (have: $installed)\";; esac","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use the exact architecture strings Vagrant prints (amd64, arm64, i386) rather than vendor synonyms like x86_64/aarch64.","Treat the error message's architecture list as the source of truth and re-run with one of those values."],"tags":["vagrant","box-remove","architecture"],"backgroundTag":"resource-not-found","analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}