How to programmatically clear application data

You can use the package-manager tool to clear data for installed apps (similar to pressing the ‘clear data’ button in the app settings on your device).
So using adb you could do:

adb shell pm clear my.wonderful.app.package

Leave a Comment