ActivityManager.ClearApplicationUserData Method

Definition

Permits an application to erase its own data from disk.

[Android.Runtime.Register("clearApplicationUserData", "()Z", "GetClearApplicationUserDataHandler")]
public virtual bool ClearApplicationUserData ();
[<Android.Runtime.Register("clearApplicationUserData", "()Z", "GetClearApplicationUserDataHandler")>]
abstract member ClearApplicationUserData : unit -> bool
override this.ClearApplicationUserData : unit -> bool

Returns

true if the application successfully requested that the application's data be erased; false otherwise.

Attributes

Remarks

Permits an application to erase its own data from disk. This is equivalent to the user choosing to clear the app's data from within the device settings UI. It erases all dynamic data associated with the app -- its private data and data in its private area on external storage -- but does not remove the installed application itself, nor any OBB files. It also revokes all runtime permissions that the app has acquired, clears all notifications and removes all Uri grants related to this application.

Java documentation for android.app.ActivityManager.clearApplicationUserData().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to