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_UNSPECIFIEDThis value is ignored.
PRESERVE_RESET_PROTECTION_DATAPreserve the factory reset protection data on the device.
WIPE_EXTERNAL_STORAGEAdditionally wipe the device's external storage (such as SD cards).
WIPE_ESIMSFor 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 theADD_ESIM command) on the devices and no personally owned eSIMs will be removed.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-25 UTC.