code: public void clearCache() {
          File cacheDir = getCacheDir();
          if (cacheDir.exists()) {
              File[] files = cacheDir.listFiles();
              if (files != null) {
                  for (File child : files) {
                      deleteFilesRecursively(child);
                  }
              }
          }
      }
docs: This clears the contents of the directory provided in {@link #getCacheDir()}.