title: delete dumpstate/logcat from device
body: <p>I Want to delete logs generated by the device from android phone using app or any code.</p>
  
  <p>I tried using adb logcat -c this operation is not working until I kill ADB server(adb kill-server) and do adb logcat -c. I don't want to kill server as automation(Using appium) is running and killing adb server will also stop automation.</p>
  
  <p>I tried searching in the internet and found a code *#9900# which is not working on the motorola phone(Moto E and Moto G).</p>
  
  <p>So I'm thinking of to build an android app(new to android app development) to clear the logs. can any one suggest me is it possible to do this or any other possible ways with and without rooting phone</p>