WipeDataFlag

  • Device deletion uses flags to control data wiping behavior.

  • By default, all user data and factory reset protection data are wiped during device deletion.

  • Flags exist to preserve reset protection data, wipe external storage, and remove eSIMs.

Flags used to control data wiping behavior when a device is deleted. By default all user data and factory reset protection data is wiped.

Enums
WIPE_DATA_FLAG_UNSPECIFIED This value is ignored.
PRESERVE_RESET_PROTECTION_DATA Preserve the factory reset protection data on the device.
WIPE_EXTERNAL_STORAGE Additionally wipe the device's external storage (such as SD cards).
WIPE_ESIMS For company-owned devices, this removes all eSIMs from the device when the device is wiped. In personally-owned devices, this will remove managed eSIMs (eSIMs which are added via the ADD_ESIM command) on the devices and no personally owned eSIMs will be removed. For devices running on Android 16 or higher, managed eSIMs are always wiped when work profile is removed for personally-owned devices, whether this flag is provided or not.