public static void clearCache(Context context, boolean includeNetwork) {
    taskCache.clear();
    LottieCompositionCache.getInstance().clear();
    if (includeNetwork) {
      final NetworkCache networkCache = L.networkCache(context);
      if (networkCache != null) {
        networkCache.clear();
      }
    }
  }
Clears any pending animations, animations that are parsed and in-memory, and
optionally, any animations loaded from the network that are cached to disk.
lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java