1. Home
  2. Knowledge Base
  3. SureMDM
  4. Android Management
  5. How to use the SureMDM Run Script to Delete or Remove App Accounts installed on a Device

How to use the SureMDM Run Script to Delete or Remove App Accounts installed on a Device

The Android Automotive OS provides a reference user experience and interface for managing users and accounts.

Purpose

Many users will add their personal Gmail account and install all the apps and games they want. The purpose of this article is to assist Admins in removing such personal accounts and just keeping the work-play accounts.

Prerequisites

NA

Steps

  1. Log in to the SureMDM console.
  2. Navigate to the Jobs section and click on New Job.
  3. Select the OS as Android and select Run Script.
  4. In the Run Script section, insert the run script available below, as shown in the image.

!#suremdm

removeAccountFromDevice(com.google)

Run Script to remove all the accounts: 

!#suremdm

removeAccountFromDevice(*)

5. Enter the job name and save it.

6. Click Apply to launch the Apply Job/Profile To Device prompt.

7.In the Apply Job/Profile To Device prompt, select the created run script job and click Apply.

Need help? CONTACT US 

Was this helpful?
YesNo
Updated on February 2024