Android.App.Admin.DevicePolicyManager.WipeData Method
Ask the user data be wiped.

Syntax

[Android.Runtime.Register("wipeData", "(I)V", "GetWipeData_IHandler")]
public virtual void WipeData ([Android.Runtime.GeneratedEnum] WipeDataFlags flags)

Parameters

flags
Bit mask of additional options: currently 0 and DevicePolicyManager.WipeExternalStorage are supported.

Remarks

Ask the user data be wiped. This will cause the device to reboot, erasing all user data while next booting up. External storage such as SD cards will be also erased if the flag DevicePolicyManager.WipeExternalStorage is set.

The calling device admin must have requested DeviceAdminInfo.UsesPolicyWipeData to be able to call this method; if it has not, a security exception will be thrown.

[Android Documentation]

Requirements

Namespace: Android.App.Admin
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8