ลบแอป
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ลบแอปด้วยตนเอง
ผู้ใช้สามารถลบแอปออกจากอุปกรณ์ด้วยตนเอง เว้นแต่ DPC ของอุปกรณ์จะจำกัดไม่ให้ผู้ใช้ดำเนินการดังกล่าว หากแอปยังคงอยู่ใน Managed Google Play Store ผู้ใช้จะติดตั้งแอปอีกครั้งได้
ป้องกันไม่ให้ผู้ใช้ลบแอป
ที่ระดับ DPC คุณป้องกันไม่ให้ผู้ใช้ลบแอปบางแอปได้โดยใช้ DevicePolicyManager.setUninstallBlocked
นำแอปออกจาก Managed Play Store
การนำแอปออกจาก policy
ของ Device
จะทำให้ไม่มีการติดตั้งใหม่และการอัปเดตแอปในอุปกรณ์นั้น แต่ระบบจะไม่ถอนการติดตั้งแอปโดยอัตโนมัติ
ลบแอป
หากต้องการลบแอปออกจากอุปกรณ์ของผู้ใช้ ให้โทรหา Installs.delete
เรียกคืนใบอนุญาตของแอปที่ต้องซื้อ
การถอนการติดตั้งแอปไม่ได้เป็นการลบการให้สิทธิ์ของผู้ใช้ในแอป เรียก
Entitlements.delete
เพื่อ
ตัดการเชื่อมโยงการให้สิทธิ์จากผู้ใช้และถอนใบอนุญาตของผู้ใช้สำหรับแอปนั้น
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\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."]]