重要提示:我们不再接受 Play EMM API 的新注册。
了解详情。
删除应用
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
手动删除应用
用户可以从设备上手动删除应用,除非设备的 DPC 限制他们这样做。如果应用在 Google Play 企业版商店中仍然可用,则用户可以重新安装应用。
禁止用户删除应用
在 DPC 级别,您可以使用 DevicePolicyManager.setUninstallBlocked
防止用户删除特定应用。
从 Play 企业版商店中移除应用
从 Device
的 policy
中移除某个应用可防止在该设备上新安装和更新该应用。不过,系统不会自动卸载该应用。
删除应用
如需从用户的设备中删除应用,请调用 Installs.delete
。
收回付费应用许可
卸载应用不会删除用户对应用的权限。调用 Entitlements.delete
可解除与用户的权限的关联,并释放用户的应用许可。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eUsers can manually delete apps unless restricted by device policies, and can reinstall them if available in the managed Google Play store.\u003c/p\u003e\n"],["\u003cp\u003eDevice Policy Controllers (DPCs) can prevent users from deleting specific apps.\u003c/p\u003e\n"],["\u003cp\u003eRemoving an app from a device's policy in the managed Play Store prevents new installations and updates but doesn't automatically uninstall it.\u003c/p\u003e\n"],["\u003cp\u003eTo delete an app from a user's device, use the \u003ccode\u003eInstalls.delete\u003c/code\u003e API call.\u003c/p\u003e\n"],["\u003cp\u003eUninstalling an app doesn't remove the user's license; use the \u003ccode\u003eEntitlements.delete\u003c/code\u003e API call to reclaim paid app licenses.\u003c/p\u003e\n"]]],[],null,["# Delete apps\n\nManually delete apps\n--------------------\n\nUsers can delete apps manually from their device unless the device's DPC\nrestricts them from doing so. If the app is still available in the managed\nGoogle Play store, the user can re-install the app.\n\n### Prevent users from deleting apps\n\nAt the DPC-level, you can prevent users from deleting specific apps using\n[`DevicePolicyManager.setUninstallBlocked`](https://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#setUninstallBlocked).\n\nRemove apps from the managed Play Store\n---------------------------------------\n\nRemoving an app from the [`Device`](/android/work/play/emm-api/v1/devices)'s\n`policy` prevents new installs and updates of the app on that device. However\nthe app is not uninstalled automatically.\n\n### Delete apps\n\nTo delete an app from a user's device, call\n[`Installs.delete`](/android/work/play/emm-api/v1/installs/delete).\n\n### Reclaim paid app licenses\n\nUninstalling an app doesn't delete a user's entitlement to the app. Call\n[`Entitlements.delete`](/android/work/play/emm-api/v1/entitlements/delete) to\ndissociate an entitlement from a user and release the user's license for the\napp."]]