clearAllCache

fun clearAllCache(context: Context): Result<Unit>

Clears all cached data including Stream cache, image cache, and timestamped cache folders.

The video cache directory is owned by a live SimpleCache when the video cache is opted in, so it is cleared in-place by the owning VideoMediaCache at a higher layer (see ChatClient.clearCacheAndTemporaryFiles) rather than by deleting the directory here.

Return

Result.Success if all caches cleared successfully, or Result.Failure with an error

Parameters

context

Android context for cache directory access