Clear the data of an application on an emulator or device

adb shell

  • Android Debug Bridge Shell: Run remote shell commands on an Android emulator instance or connected Android devices.
    More information: <https://developer.android.com/studio/command-line/adb>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

adb shell pm clear {{package}}

click the source code to copy install adb shell on any operating system with command-not-found.com