public boolean indexExists(AccountIndex index) {
    Cursor cursor = getAccountCursor(index);
    try {
      return !cursorIsEmpty(cursor);
    } finally {
      tryCloseCursor(cursor);
    }
  }
Deletes the whole database (not just its data).

@return whether the database was successfully deleted.
java/com/google/android/apps/authenticator/otp/AccountDb.java