title: Removal of SQLite database file using Java doesn't work
body: <p>These code blocks work but...
  If I use this blocks one by one my application doesn't remove database file. (<code>result</code> is equeal to <code>false</code>)</p>
  
  <p>sqlite manage part:</p>
  
  <pre><code>    // sqlite manage
  
          Class.forName("org.sqlite.JDBC").newInstance();            
              conn = DriverManager.getConnection("jdbc:sqlite:/"+ myDBpath);
              stmt = conn.createStatement();
      //some calculations
      stmt.close();
  </code></pre>
  
  <p>removal part:</p>
  
  <pre><code>    //remove this file
      boolean result = new File(myDBpath).delete();
  </code></pre>
  
  <p>But if I use only remove code without database operations it works! Why? How can I avoid it?</p>