The data associated with an app which we see when we go to Applications > Manage Applications > application, is it cleared when we hit "Uninstall" or is it left untouched by the uninstaller?

The reason why I'm asking it is, I've heard from a lot of people who first hit "Clear data" and then hit "Uninstall" mostly because they're not sure so they just ensure that they get rid of the data and then uninstall!! So do one need to hit "Clear data" before uninstalling.


3 Answers 3


As Matthew Read noted in a comment: yes, it is. The entire data directory is simply deleted:

C:\Console2>adb shell ls /data/data/com.chessclock.android/
lib           shared_prefs

C:\Console2>adb uninstall com.chessclock.android

C:\Console2>adb shell ls /data/data/com.chessclock.android/
ls: /data/data/com.chessclock.android/: No such file or directory

#Reinstalled from the Market at this point

C:\Console2>adb shell ls /data/data/com.chessclock.android/

The shared_prefs directory is absent in the last ls listing because I didn't launch the app, I only reinstalled it, therefore there were no preferences yet created for it (it sets defaults on the first launch). I point this out only because it illustrates that the preferences from the previous install were not retained anywhere.


This is probably obvious, but... Some apps that have the permission "Modify/delete USB storage" may use the internal memory for caches etc. and may not necessarily remove the data once the app is deleted. I've seen apps to write in not so obvious directories like /sdcard/data/[package name]/, but mostly they use /sdcard/[app name]/ which is easy to spot and delete.

  • 4
    Data written to the sdcard like that also won't be deleted by the Clear Data button, of course, so either way you'd need to remove it manually. Good point, though. Commented Aug 11, 2011 at 13:06

Simpler and convincing test...

I installed Super Sudoku, changed a setting and Manage Apps showed data. I uninstalled it without data clearing, reinstalled it and Manage Apps showed no data. Setting was lost. But I have read several times documentation saying that the setting will be kept after the same operation. They must have some control of it.

  • It'd be better if you could also provide the link to the documentation about that, as currently it contradicts the other answers.
    – Andrew T.
    Commented Apr 28, 2015 at 1:01
  • What exactly are you calling "that"? I'm not contradicting the "other answers", I'm producing an experiment that comes to the same conclusion as the only answer talking about the same subject: the data memory is erased, including configuration. The other answer says that other data may remain elsewhere. I added that I've seen programs guaranteeing to keep the configuration after uninstallation and I don't know how (it was not in /sdcardX). That could have been simply said in screen messages. I'm afraid there's mostly no longer proper, complete documentation by these days.
    – Papou
    Commented Apr 29, 2015 at 8:40
  • No problem, seems there's a misunderstanding. I was referring to "documentation" that says "the setting will be kept after the same operation, and I thought by documentation means official Android SDK doc, but your comment just clear my confusion. No worries...
    – Andrew T.
    Commented Apr 29, 2015 at 10:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .