title: adb - How to reinstall an app, without retaining the data?
body: <pre><code>adb install foo.apk
  </code></pre>
  
  <p>When using this command, if the apk exists, I should get the error *Failure [INSTALL_FAILED_ALREADY_EXISTS]*</p>
  
  <pre><code> adb install -r myapp-release.apk
  </code></pre>
  
  <p>In this case,the existing apk will be replaced, by retaining old data
  according to the docs, </p>
  
  <blockquote>
    <p>'-r' means reinstall the app, keeping its data</p>
  </blockquote>
  
  <p>Now how do I reinstall the app, but all previous data should be erased?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I know we can do this</p>
  
  <pre><code>adb uninstall com.package.foo &amp; adb install foo.apk
  </code></pre>
  
  <p>I just wanted to know if there is a command or something in adb itself.</p>