title: How to clear the navigation stack so the back button doesn't appear?
body: <p>This is how my view controllers are structured in the storyboard:</p>
  
  <pre><code>navController1 -&gt; viewController1 -&gt; viewController2 -&gt; viewController3
  </code></pre>
  
  <p>I have a segue from <code>viewController3</code> back to <code>viewController1</code>. So, when the user transitions to <code>viewContoller1</code>, the back button shows on the navbar (as expected). However, in my case, I don't want the user to go back to <code>viewController3</code>, from <code>viewController1</code>. I want to start fresh from <code>viewController1</code> again. Is there a way to clear the stack after transitioning to <code>viewController1</code>, so that the back button does not appear? </p>
  
  <p>(Note that navController1 is not my root controller, I have some other controllers before it.)</p>