title: SAPUI5: How can I destroy a view that its `onInit` function call each times that I visit that route?
body: <p>How can I remove a view in SAPUI5 when I visit another route such that when I return back its <code>onInit</code> function call again.</p>
  
  <p>My problem is that I want load different master-details applications in same <code>sap.m.SplitApp</code> object but the problem is that I faced with duplicate id.</p>
  
  <p>So one possibility is that that I destroy the old content, while if I destroy the old content I will get rid of duplicate id, but when I want to visit again the old route it says some elements has been destroyed and can not be used any more.</p>
  
  <p>So one possibility is that to find a way to run the <code>onInit</code> function each time that we visit the routes.</p>