# WipeDataFlag

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 `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices/issueCommand#CommandType.ENUM_VALUES.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. |