title: How can i remove all fragments that are added with the fragmentmanager?
body: <p>I added multiple fragments like this :</p>
  
  <pre><code> currentWebViewFragment = tabs.get(currentTabIndex);
   FragmentTransaction ft = fm.beginTransaction();
   ft.add(R.id.webViewFrame,tabs.get(currentTabIndex));
   ft.commit();
  </code></pre>
  
  <p>But "If an activity is paused or stopped, the system can drop the activity from memory by either asking it to finish, or simply killing its process.</p>
  
  <p>if the activity is destroyed and saves it's state, so does the fragmentmanager.</p>
  
  <p>how can i remove all the fragments that were added from the fragmentmanager when the activity gets destroyed and decides to save it's state?</p>