I have lightning Component which because of function and page length. I'm not able to use inside a modal. Hence, I am using Lightning Custom Tab to call that Component. However, upon saving/Cancel I want the user to be redirected to Opp Record Detail page which happening with force.navigatetoSobject. However, this tab stay open in the Navigation bar. Is there anyway to remove it from there??? or close the Tab completely?
PS: I have tried worksapceAPI but that only works with Console App. We are not using console app here.