How to Clear User Data in your Android Application programmatically

Published by Igor Khrupin on

How to clear user data of your application programmatically? Here I share with you my solution how to do this.

You also can clear your user data by clicking “Clear Data” button in Settings–>Applications–>Manage Aplications–> YOUR APPLICATION

To do it programmatically you need to remove user data from application dir.

Below you can download source code of sample Android project.

Pay attention in MyApplication class:

package com.hrupin.cleaner;


import android.util.Log;

public class MyAppl