How to clear data from ViewModel ?MVVM [closed]
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 8 days ago . Improve this question Is there any way to clear/delete all data stored using MVVM pattern? My app looks like Login Activity -> Main Activity -> fragments(each fragment: Firebase singleton +repository singleton+view model + view) All the data is stored as livedata and when I