Example #1
0
 public static boolean deleteDatabase(Context context, String name) {
   logger.i(context.getDatabasePath(name).getPath());
   return context.getDatabasePath(name).delete();
 }
Example #2
0
 public static void deleteDatabaseDirectory(Context context) {
   File databaseDirectory = context.getDatabasePath("").getAbsoluteFile();
   deleteContentsOfDirectory(databaseDirectory);
   logger.i("Database Directory: " + databaseDirectory.getAbsolutePath());
 }