deleteDefaultCacheDir static method

Future<void> deleteDefaultCacheDir()

Deletes the default cache directory.

If the root cache path is not initialized, the method does nothing. The deletion is recursive.

Implementation

static Future<void> deleteDefaultCacheDir() async {
  if (_cacheRootPath.isEmpty) return;
  await Directory('$_cacheRootPath').delete(recursive: true);
}