Kitchen Hacker

RSS

Clear Application Data - Android

Clearing the application data is a common task in android development. Often you want to clear out the database or just reset the app to a “fresh install state”. It has been a pain to do until I realized I could do it this way.

Things I used to have to do:

  1. Open App Tray
  2. Open settings App
  3. Navigate to apps section
  4. Scroll to Hashable App
  5. Click on Hashable App
  6. Click on Clear Data

Things I do now:

  1. ./adb shell pm clear com.mypackage.name

File this one under “things I really wish I knew I could do F**kin months ago”.