title: How to manually clear a specific viewmodel?
body: <p>As I understand when we call this code in fragments, we will have a viewmodel instance from activity ViewModelStore: </p>
  
  <pre><code>viewModel = ViewModelProviders.of(activity!!).get(SharedViewModel::class.java)
  </code></pre>
  
  <p>When fragments will end their lifecycle, the instance of this viewmodel will exist in ViewModelStore until the destruction of activity. ViewModelStore has a clear() method, but it clears all viewmodels in it. Is there some way to clear specific ViewModel?</p>
  
  <p>Another solution is to scope ViewModel to parent fragment, but how do we initialize ViewModel in another fragment through ViewModelProviders.of()? Should I pass fragment or viewmodel instance to the next fragment?</p>