[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[],[],null,["# Wipe and deprovision a device\n\nDeprovisioning is the process of removing a device from management. This is\nnecessary when a device is disposed of or when an employee leaves a company and\ncompany data needs to be removed from a personally-owned device.\n\nThere are four methods for deprovisioning a device and wiping company data:\n\n1. WIPE command\n2. RELINQUISH_OWNERSHIP command\n3. [`enterprises.devices.delete`](/android/management/reference/rest/v1/enterprises.devices/delete) method\n4. [`enterprises.delete`](/android/management/reference/rest/v1/enterprises/delete) method\n\nWIPE command\n------------\n\nThis method triggers company-owned devices to factory reset and personally-owned\ndevices to delete the work profile. Call [`enterprises.devices.issueCommand`](/android/management/reference/rest/v1/enterprises.devices/issueCommand)\nwith `type = WIPE`, or provide a [`wipeParams`](/android/management/reference/rest/v1/enterprises.devices/issueCommand#wipeparams)\nobject. The `wipeParams` object can specify how to treat Factory Reset\nProtection (FRP) data, external storage and eSIMs during the wipe. You can\nprovide a set of localized messages to display to users of personally-owned\ndevices to explain the work profile deletion using `wipeParams.wipeReason`.\nThe command can be [tracked](/android/management/reference/rest/v1/enterprises.devices.operations/get)\nand [cancelled](/android/management/reference/rest/v1/enterprises.devices.operations/cancel)\nuntil it is acknowledged by the device or it expires.\nAfter the device confirms the completion of the WIPE command to the server, the\ndevice record is deleted.\n| **Note:** A deleted device record is no longer returned in calls to [`enterprises.devices.list`](/android/management/reference/rest/v1/enterprises.devices/list). Any further API calls the EMM makes using the device ID result in a 404 error. The device is no longer manageable and must be reprovisioned to be managed again.\n\nRELINQUISH_OWNERSHIP command\n----------------------------\n\nThis method is used when a company-owned, personally-enabled device is converted\nto a personally-owned device. It deletes the work profile from the device and\nremoves the device from management. Any data or apps in the personal profile of\nthe device are preserved. Any [`PersonalUsagePolicies`](/android/management/reference/rest/v1/enterprises.policies#personalusagepolicies)\nthat were set by the EMM are removed.\nThe device record is deleted after this action.\n\n[`enterprises.devices.delete`](/android/management/reference/rest/v1/enterprises.devices/delete) method\n-------------------------------------------------------------------------------------------------------\n\nCalling [`enterprises.devices.delete`](/android/management/reference/rest/v1/enterprises.devices/delete)\nimmediately deletes the device record.\n\nThe server sends a wipe instruction to the device. For company-owned devices,\nthis triggers a factory reset. For personally-owned devices, this deletes the\nwork profile. However, if the device is offline when `enterprises.devices.delete`\nis called and remains offline for more than 30 days, the wipe instruction won't\nreach the device, and company data will remain.\n\nBecause data wiping is not guaranteed with this method, it is recommended only\nwhen data must be removed from Google servers within a specific timeframe,\nsuch as when a company requests the EMM to immediately delete all company data.\n\n[`enterprises.delete`](/android/management/reference/rest/v1/enterprises/delete) method\n---------------------------------------------------------------------------------------\n\nFor EMM-managed enterprises, the EMM can call [`enterprises.delete`](/android/management/reference/rest/v1/enterprises/delete),\nwhich deletes the enterprise record and all associated device records. This has\nthe same effect as calling [`enterprises.devices.delete`](/android/management/reference/rest/v1/enterprises.devices/delete)\non each device within the enterprise.\n\nFor customer-managed enterprises, this method is not supported. Instead, the IT\nadmin can delete the enterprise using the [Google Admin console](http://admin.google.com)\nor the [Google Play Console](https://play.google.com/work)."]]