title: How to disconnect from a wifi network through adb?
body: <p>I understand we could turn off Wifi through the "adb shell svc wifi disable" command but I don't want to completely turn off Wifi. I want to disconnect from a particular ssid through adb. Is it possible?</p>
  
  <p>Edit: I got a notification saying this question is identified as a dupe of this question: <a href="https://stackoverflow.com/questions/10033757/how-to-turn-off-wifi-via-adb">How to turn off Wifi via ADB?</a>. It actually is not. As mentioned clearly in the first paragraph, I don't want to turn off wifi but want to simply disconnect from a particular network. This is like long pressing a network and tapping "Forget network". Essentially I want to simulate a condition of the user moving out of a wifi network without having to turn off wifi.</p>