B2G/gecko/toolkit/components/places/tests/head_common.js
/**
 * Deletes a previously created sqlite file from the profile folder.
 */
Deletes a previously created sqlite file from the profile folder.
Deletes a previously created sqlite file from the profile folder .
function clearDB() {
  try {
    let file = Services.dirsvc.get('ProfD', Ci.nsIFile);
    file.append("places.sqlite");
    if (file.exists())
      file.remove(false);
  } catch(ex) { dump("Exception: " + ex); }
}
function clearDB ( ) { try { let file = Services . dirsvc . get ( 'ProfD' , Ci . nsIFile ) ; file . append ( "places.sqlite" ) ; if ( file . exists ( ) ) file . remove ( false ) ; } catch ( ex ) { dump ( "Exception: " + ex ) ; } }
Deletes a previously created sqlite file from the profile folder.
Deletes a previously created sqlite file from the profile folder .