# \[Android\] How to remove Google accounts linked a device on setting activity

**URL:** <https://discuss.appium.io/t/android-how-to-remove-google-accounts-linked-a-device-on-setting-activity/6920>\
**Category:** Support\
**Created:** [November 4, 2015, 3:26am UTC](https://discuss.appium.io/t/android-how-to-remove-google-accounts-linked-a-device-on-setting-activity/6920 "2015-11-04T03:26:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lee\_Dongwoo](https://discuss.appium.io/letter_avatar_proxy/v4/letter/l/258eb7/32.png) [@Lee\_Dongwoo](https://discuss.appium.io/u/Lee_Dongwoo)\
**Post date:** [November 4, 2015, 3:26am UTC](https://discuss.appium.io/t/android-how-to-remove-google-accounts-linked-a-device-on-setting-activity/6920/1 "2015-11-04T03:26:46Z")

</div>

Hi, I’m Lee.

I need some helps, and any ideas.

(First of all, Sorry to poor English.)

I’m testing some applications from several devices. The app connect with device using account(Google+) on start.

My goal is remove the account when the test ends.

1. remove account.db file.  
=\> I don’t want to use rooted device.

2. create scripts using UI Searching by webdriver.  
=\> I think UI of devices are different(manufacturer, api level,)

I want to make a script to remove account related with device. and going well on any devices.

Are there anyone who have a solution? or think about this?

Thank you. Have a nice day.

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [November 4, 2015, 5:50am UTC](https://discuss.appium.io/t/android-how-to-remove-google-accounts-linked-a-device-on-setting-activity/6920/2 "2015-11-04T05:50:05Z")

</div>

I do more iOS work than Android but couldn’t you do this with an adb command? Something like:

```
adb shell pm remove-user <USER_ID>

```

See here for more info:

[http://developer.android.com/tools/help/shell.html](http://developer.android.com/tools/help/shell.html)

---

<div class="post-metadata">

**Author:** ![Lee\_Dongwoo](https://discuss.appium.io/letter_avatar_proxy/v4/letter/l/258eb7/32.png) [@Lee\_Dongwoo](https://discuss.appium.io/u/Lee_Dongwoo)\
**Post date:** [November 5, 2015, 4:42am UTC](https://discuss.appium.io/t/android-how-to-remove-google-accounts-linked-a-device-on-setting-activity/6920/3 "2015-11-05T04:42:03Z")

</div>

Hi Wreed.

Appreciate you for help.

But It’s not my purpose actually.

I want to remove Google Account in Settings menu.

Thanks!
