Not able to remove item from a tabpanel

Hello,

I have a tab-panel and i am adding few items dynamically into it. I want to delete the same from the tab-panel. However, when i delete the item from tab-panel the item content is getting deleted but the tab is still visible in the tab-bar. The tab-bar is not getting refreshed. Please find the sample screenshot as attachment.