title: Dropping SQLite database on upgrading application
body: <p>I implemented an Android application which use Sqlite database.</p>
  
  <p>When I release a new version of my application (not in playStore), I upload it on my server, so, if the old application is running, calling web service, can understand that new version is  available. So, new version is downloaded and installed. </p>
  
  <p>When the application is overinstalled, the database is not dropped, so if I need to do any changes of my database I need to use the method:</p>
  
  <pre><code>public void onUpgrade(SQLiteDatabase _db, int oldVersion, int newVersion)
  </code></pre>
  
  <p>This is fine, unless I need to do many changes in my database. In this case, the code becomes unreadable. So I would to delete the database and create a new one.</p>
  
  <p>How can I perform this task?</p>
  
  <p><strong>EDIT</strong>: What about using <code>context.deleteDatabase(DATABASE_NAME);</code> ?</p>