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