{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/4836","labels_url":"https://api.github.com/repos/elastic/kibana/issues/4836/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/4836/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/4836/events","html_url":"https://github.com/elastic/kibana/issues/4836","id":104514122,"number":4836,"title":"Uninstalling a plugin does not remove it's optimized bundle","user":{"login":"polyfractal","id":1224228,"avatar_url":"https://avatars.githubusercontent.com/u/1224228?v=3","gravatar_id":"","url":"https://api.github.com/users/polyfractal","html_url":"https://github.com/polyfractal","followers_url":"https://api.github.com/users/polyfractal/followers","following_url":"https://api.github.com/users/polyfractal/following{/other_user}","gists_url":"https://api.github.com/users/polyfractal/gists{/gist_id}","starred_url":"https://api.github.com/users/polyfractal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polyfractal/subscriptions","organizations_url":"https://api.github.com/users/polyfractal/orgs","repos_url":"https://api.github.com/users/polyfractal/repos","events_url":"https://api.github.com/users/polyfractal/events{/privacy}","received_events_url":"https://api.github.com/users/polyfractal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/kibana/labels/4.2.0","name":"4.2.0","color":"ffffff"},{"url":"https://api.github.com/repos/elastic/kibana/labels/blocker","name":"blocker","color":"ff0000"},{"url":"https://api.github.com/repos/elastic/kibana/labels/bug","name":"bug","color":"ff0000"}],"state":"open","locked":false,"assignee":{"login":"BigFunger","id":12193008,"avatar_url":"https://avatars.githubusercontent.com/u/12193008?v=3","gravatar_id":"","url":"https://api.github.com/users/BigFunger","html_url":"https://github.com/BigFunger","followers_url":"https://api.github.com/users/BigFunger/followers","following_url":"https://api.github.com/users/BigFunger/following{/other_user}","gists_url":"https://api.github.com/users/BigFunger/gists{/gist_id}","starred_url":"https://api.github.com/users/BigFunger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigFunger/subscriptions","organizations_url":"https://api.github.com/users/BigFunger/orgs","repos_url":"https://api.github.com/users/BigFunger/repos","events_url":"https://api.github.com/users/BigFunger/events{/privacy}","received_events_url":"https://api.github.com/users/BigFunger/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-09-02T15:55:09Z","updated_at":"2015-09-04T15:52:10Z","closed_at":null,"body":"Seems that when you uninstall a plugin, the optimized bundle sticks around.  If you reinstall a newer version of the same plugin, Kibana won't notice and continue to use the old bundle.\r\n\r\nRepo:\r\n\r\n```\r\n➜  kibana-4.2.0-snapshot-darwin-x64  ./bin/kibana --version\r\n4.2.0-snapshot\r\n➜  kibana-4.2.0-snapshot-darwin-x64  ./bin/kibana plugin -r timelion           \r\nRemoving timelion...\r\n➜  kibana-4.2.0-snapshot-darwin-x64  cd optimize/bundles \r\n➜  bundles  ls | grep timelion\r\ntimelion.bundle.js\r\ntimelion.entry.js\r\ntimelion.style.css\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/kibana/issues/comments/137774704","html_url":"https://github.com/elastic/kibana/issues/4836#issuecomment-137774704","issue_url":"https://api.github.com/repos/elastic/kibana/issues/4836","id":137774704,"user":{"login":"spalger","id":1329312,"avatar_url":"https://avatars.githubusercontent.com/u/1329312?v=3","gravatar_id":"","url":"https://api.github.com/users/spalger","html_url":"https://github.com/spalger","followers_url":"https://api.github.com/users/spalger/followers","following_url":"https://api.github.com/users/spalger/following{/other_user}","gists_url":"https://api.github.com/users/spalger/gists{/gist_id}","starred_url":"https://api.github.com/users/spalger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spalger/subscriptions","organizations_url":"https://api.github.com/users/spalger/orgs","repos_url":"https://api.github.com/users/spalger/repos","events_url":"https://api.github.com/users/spalger/events{/privacy}","received_events_url":"https://api.github.com/users/spalger/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T15:52:10Z","updated_at":"2015-09-04T15:52:10Z","body":"@polyfractal the reason that the builds aren't updating is because the package.json lists the same version number. If you want the builds to update you'll need to increment the version number there."}}