Issue
I removed old build folders from the build directory in Jenkins expecting them to be removed in the UI, unfortunately whilse these build directories are gone, their UI link still exists. I now have two questions:
- How can I get rid of the defunct links in the UI?
- How can I delete old build from cli and have it reflected in the UI?
Solution
You must either restart Jenkins or reload the data, in order to reconcile the UI with its back end. There is no other way.
If you have access to the "Manage Jenkins" menu there is a link to "Reload Configuration from Disk", which is a little less invasive than a restart.
Keep in mind that the system will be not usable for a few seconds while the data is reloaded, just like during a full restart. If you have a lot of builds, this might take a little. So, make sure that this is ok with the other users of your system.
Answered By - rgulia