title: How can I destroy a View?
body: <p>I would like to destroy a View and the corresponding Controller as soon as  somebody is using the back button. This would give me the possibility to  avoid a reset function and i could use user-created content within the init method from the new controller.</p>
  
  <p>But the sap-ui-core is throwing an <code>adding element with duplicate id</code> error messages, what did i wrong?</p>
  
  <pre class="lang-js prettyprint-override"><code>var oView = sap.ui.view({
      id: id,
      viewName: "newController",
      type: sap.ui.core.mvc.ViewType.XML
  })
  oView.destroy();
  
  oView = sap.ui.view({
      id: id,
      viewName: "newController",
      type: sap.ui.core.mvc.ViewType.XML
  })
  oView.destroy();
  </code></pre>