{"action":"closed","number":3462,"pull_request":{"url":"https://api.github.com/repos/mitchellh/vagrant/pulls/3462","id":14693113,"html_url":"https://github.com/mitchellh/vagrant/pull/3462","diff_url":"https://github.com/mitchellh/vagrant/pull/3462.diff","patch_url":"https://github.com/mitchellh/vagrant/pull/3462.patch","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/3462","number":3462,"state":"closed","locked":false,"title":"Remove all available versions of a box","user":{"login":"berendt","id":419091,"avatar_url":"https://avatars.githubusercontent.com/u/419091?v=3","gravatar_id":"","url":"https://api.github.com/users/berendt","html_url":"https://github.com/berendt","followers_url":"https://api.github.com/users/berendt/followers","following_url":"https://api.github.com/users/berendt/following{/other_user}","gists_url":"https://api.github.com/users/berendt/gists{/gist_id}","starred_url":"https://api.github.com/users/berendt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berendt/subscriptions","organizations_url":"https://api.github.com/users/berendt/orgs","repos_url":"https://api.github.com/users/berendt/repos","events_url":"https://api.github.com/users/berendt/events{/privacy}","received_events_url":"https://api.github.com/users/berendt/received_events","type":"User","site_admin":false},"body":"This patch introduces a new parameter --all for the remove command of the box plugin.\r\n\r\nWhile using the parameter --all when removing a box will remove all available versions of the box.\r\n\r\nExample usage:\r\n\r\n```\r\n$ vagrant box list\r\nberendt/ubuntu-14.04-amd64          (virtualbox, 0.2.11)\r\nberendt/ubuntu-14.04-amd64          (virtualbox, 0.2.12)\r\nberendt/ubuntu-14.04-amd64          (virtualbox, 0.2.13)\r\n```\r\n\r\n```\r\n$ vagrant box remove berendt/ubuntu-14.04-amd64\r\nYou requested to remove the box 'berendt/ubuntu-14.04-amd64' with provider\r\n'virtualbox'. This box has multiple versions. You must\r\nexplicitly specify which version you want to remove with\r\nthe `--box-version` flag.\r\n\r\nVersions:\r\n0.2.13, 0.2.12,  0.2.11\r\n```\r\n\r\nUsing the --all parameter now it's possible to remove all versions at once.\r\n\r\n```\r\n$ vagrant box remove berendt/ubuntu-14.04-amd64 --all\r\nRemoving box 'berendt/ubuntu-14.04-amd64' with provider 'virtualbox' in version '0.2.13'...\r\nRemoving box 'berendt/ubuntu-14.04-amd64' with provider 'virtualbox' in version '0.2.12'...\r\nRemoving box 'berendt/ubuntu-14.04-amd64' with provider 'virtualbox' in version '0.2.11'...\r\n```\r\n\r\nFixes https://github.com/mitchellh/vagrant/issues/3343","created_at":"2014-04-13T10:24:57Z","updated_at":"2015-11-09T09:37:46Z","closed_at":"2015-11-09T09:37:45Z","merged_at":null,"merge_commit_sha":"3f1effadaf20fb3c1b1062d57de68423d7b801a1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mitchellh/vagrant/pulls/3462/commits","review_comments_url":"https://api.github.com/repos/mitchellh/vagrant/pulls/3462/comments","review_comment_url":"https://api.github.com/repos/mitchellh/vagrant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/3462/comments","statuses_url":"https://api.github.com/repos/mitchellh/vagrant/statuses/8f5c4918d9234241c77604ca887d0582de0ee0e7","head":{"label":"berendt:remove_all_versions","ref":"remove_all_versions","sha":"8f5c4918d9234241c77604ca887d0582de0ee0e7","user":{"login":"berendt","id":419091,"avatar_url":"https://avatars.githubusercontent.com/u/419091?v=3","gravatar_id":"","url":"https://api.github.com/users/berendt","html_url":"https://github.com/berendt","followers_url":"https://api.github.com/users/berendt/followers","following_url":"https://api.github.com/users/berendt/following{/other_user}","gists_url":"https://api.github.com/users/berendt/gists{/gist_id}","starred_url":"https://api.github.com/users/berendt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berendt/subscriptions","organizations_url":"https://api.github.com/users/berendt/orgs","repos_url":"https://api.github.com/users/berendt/repos","events_url":"https://api.github.com/users/berendt/events{/privacy}","received_events_url":"https://api.github.com/users/berendt/received_events","type":"User","site_admin":false},"repo":{"id":18109838,"name":"vagrant","full_name":"berendt/vagrant","owner":{"login":"berendt","id":419091,"avatar_url":"https://avatars.githubusercontent.com/u/419091?v=3","gravatar_id":"","url":"https://api.github.com/users/berendt","html_url":"https://github.com/berendt","followers_url":"https://api.github.com/users/berendt/followers","following_url":"https://api.github.com/users/berendt/following{/other_user}","gists_url":"https://api.github.com/users/berendt/gists{/gist_id}","starred_url":"https://api.github.com/users/berendt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berendt/subscriptions","organizations_url":"https://api.github.com/users/berendt/orgs","repos_url":"https://api.github.com/users/berendt/repos","events_url":"https://api.github.com/users/berendt/events{/privacy}","received_events_url":"https://api.github.com/users/berendt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/berendt/vagrant","description":"Vagrant is a tool for building and distributing working environments.","fork":true,"url":"https://api.github.com/repos/berendt/vagrant","forks_url":"https://api.github.com/repos/berendt/vagrant/forks","keys_url":"https://api.github.com/repos/berendt/vagrant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/berendt/vagrant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/berendt/vagrant/teams","hooks_url":"https://api.github.com/repos/berendt/vagrant/hooks","issue_events_url":"https://api.github.com/repos/berendt/vagrant/issues/events{/number}","events_url":"https://api.github.com/repos/berendt/vagrant/events","assignees_url":"https://api.github.com/repos/berendt/vagrant/assignees{/user}","branches_url":"https://api.github.com/repos/berendt/vagrant/branches{/branch}","tags_url":"https://api.github.com/repos/berendt/vagrant/tags","blobs_url":"https://api.github.com/repos/berendt/vagrant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/berendt/vagrant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/berendt/vagrant/git/refs{/sha}","trees_url":"https://api.github.com/repos/berendt/vagrant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/berendt/vagrant/statuses/{sha}","languages_url":"https://api.github.com/repos/berendt/vagrant/languages","stargazers_url":"https://api.github.com/repos/berendt/vagrant/stargazers","contributors_url":"https://api.github.com/repos/berendt/vagrant/contributors","subscribers_url":"https://api.github.com/repos/berendt/vagrant/subscribers","subscription_url":"https://api.github.com/repos/berendt/vagrant/subscription","commits_url":"https://api.github.com/repos/berendt/vagrant/commits{/sha}","git_commits_url":"https://api.github.com/repos/berendt/vagrant/git/commits{/sha}","comments_url":"https://api.github.com/repos/berendt/vagrant/comments{/number}","issue_comment_url":"https://api.github.com/repos/berendt/vagrant/issues/comments{/number}","contents_url":"https://api.github.com/repos/berendt/vagrant/contents/{+path}","compare_url":"https://api.github.com/repos/berendt/vagrant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/berendt/vagrant/merges","archive_url":"https://api.github.com/repos/berendt/vagrant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/berendt/vagrant/downloads","issues_url":"https://api.github.com/repos/berendt/vagrant/issues{/number}","pulls_url":"https://api.github.com/repos/berendt/vagrant/pulls{/number}","milestones_url":"https://api.github.com/repos/berendt/vagrant/milestones{/number}","notifications_url":"https://api.github.com/repos/berendt/vagrant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/berendt/vagrant/labels{/name}","releases_url":"https://api.github.com/repos/berendt/vagrant/releases{/id}","created_at":"2014-03-25T17:34:17Z","updated_at":"2015-01-21T15:14:41Z","pushed_at":"2015-07-11T10:54:11Z","git_url":"git://github.com/berendt/vagrant.git","ssh_url":"git@github.com:berendt/vagrant.git","clone_url":"https://github.com/berendt/vagrant.git","svn_url":"https://github.com/berendt/vagrant","homepage":"http://www.vagrantup.com","size":18605,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mitchellh:master","ref":"master","sha":"261ef836e0fff75c78c24fbd30c6cb640ff574ab","user":{"login":"mitchellh","id":1299,"avatar_url":"https://avatars.githubusercontent.com/u/1299?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellh","html_url":"https://github.com/mitchellh","followers_url":"https://api.github.com/users/mitchellh/followers","following_url":"https://api.github.com/users/mitchellh/following{/other_user}","gists_url":"https://api.github.com/users/mitchellh/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellh/subscriptions","organizations_url":"https://api.github.com/users/mitchellh/orgs","repos_url":"https://api.github.com/users/mitchellh/repos","events_url":"https://api.github.com/users/mitchellh/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellh/received_events","type":"User","site_admin":false},"repo":{"id":481872,"name":"vagrant","full_name":"mitchellh/vagrant","owner":{"login":"mitchellh","id":1299,"avatar_url":"https://avatars.githubusercontent.com/u/1299?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellh","html_url":"https://github.com/mitchellh","followers_url":"https://api.github.com/users/mitchellh/followers","following_url":"https://api.github.com/users/mitchellh/following{/other_user}","gists_url":"https://api.github.com/users/mitchellh/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellh/subscriptions","organizations_url":"https://api.github.com/users/mitchellh/orgs","repos_url":"https://api.github.com/users/mitchellh/repos","events_url":"https://api.github.com/users/mitchellh/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mitchellh/vagrant","description":"Vagrant is a tool for building and distributing development environments.","fork":false,"url":"https://api.github.com/repos/mitchellh/vagrant","forks_url":"https://api.github.com/repos/mitchellh/vagrant/forks","keys_url":"https://api.github.com/repos/mitchellh/vagrant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitchellh/vagrant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitchellh/vagrant/teams","hooks_url":"https://api.github.com/repos/mitchellh/vagrant/hooks","issue_events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/events{/number}","events_url":"https://api.github.com/repos/mitchellh/vagrant/events","assignees_url":"https://api.github.com/repos/mitchellh/vagrant/assignees{/user}","branches_url":"https://api.github.com/repos/mitchellh/vagrant/branches{/branch}","tags_url":"https://api.github.com/repos/mitchellh/vagrant/tags","blobs_url":"https://api.github.com/repos/mitchellh/vagrant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitchellh/vagrant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitchellh/vagrant/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitchellh/vagrant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitchellh/vagrant/statuses/{sha}","languages_url":"https://api.github.com/repos/mitchellh/vagrant/languages","stargazers_url":"https://api.github.com/repos/mitchellh/vagrant/stargazers","contributors_url":"https://api.github.com/repos/mitchellh/vagrant/contributors","subscribers_url":"https://api.github.com/repos/mitchellh/vagrant/subscribers","subscription_url":"https://api.github.com/repos/mitchellh/vagrant/subscription","commits_url":"https://api.github.com/repos/mitchellh/vagrant/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitchellh/vagrant/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitchellh/vagrant/contents/{+path}","compare_url":"https://api.github.com/repos/mitchellh/vagrant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitchellh/vagrant/merges","archive_url":"https://api.github.com/repos/mitchellh/vagrant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitchellh/vagrant/downloads","issues_url":"https://api.github.com/repos/mitchellh/vagrant/issues{/number}","pulls_url":"https://api.github.com/repos/mitchellh/vagrant/pulls{/number}","milestones_url":"https://api.github.com/repos/mitchellh/vagrant/milestones{/number}","notifications_url":"https://api.github.com/repos/mitchellh/vagrant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitchellh/vagrant/labels{/name}","releases_url":"https://api.github.com/repos/mitchellh/vagrant/releases{/id}","created_at":"2010-01-21T08:34:27Z","updated_at":"2015-11-09T09:15:41Z","pushed_at":"2015-11-09T09:37:28Z","git_url":"git://github.com/mitchellh/vagrant.git","ssh_url":"git@github.com:mitchellh/vagrant.git","clone_url":"https://github.com/mitchellh/vagrant.git","svn_url":"https://github.com/mitchellh/vagrant","homepage":"http://www.vagrantup.com","size":46193,"stargazers_count":10552,"watchers_count":10552,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2238,"mirror_url":null,"open_issues_count":544,"forks":2238,"open_issues":544,"watchers":10552,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mitchellh/vagrant/pulls/3462"},"html":{"href":"https://github.com/mitchellh/vagrant/pull/3462"},"issue":{"href":"https://api.github.com/repos/mitchellh/vagrant/issues/3462"},"comments":{"href":"https://api.github.com/repos/mitchellh/vagrant/issues/3462/comments"},"review_comments":{"href":"https://api.github.com/repos/mitchellh/vagrant/pulls/3462/comments"},"review_comment":{"href":"https://api.github.com/repos/mitchellh/vagrant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mitchellh/vagrant/pulls/3462/commits"},"statuses":{"href":"https://api.github.com/repos/mitchellh/vagrant/statuses/8f5c4918d9234241c77604ca887d0582de0ee0e7"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":8,"review_comments":0,"commits":1,"additions":50,"deletions":36,"changed_files":3}}