clearCacheAndTemporaryFiles

Clears all cache and temporary files created by the Stream Chat SDK.

This method removes:

  • All cached files from the default cache directory

  • All cached images from the image cache directory

  • All cached files during the upload/download process

  • All temporary files stored in external storage by the SDK (Photos and videos captured using the SDK)

Note: This method does NOT clear database persistence. Use clearPersistence to clear database data, or call both methods if you need to clear all SDK data.

Note: This method does NOT clear downloads made by the SDK to the file system. Those files are stored outside of the SDK's control and cannot be removed automatically.

Return

Executable async Call which performs the cleanup

Parameters

context

The Android Context for accessing cache and external storage directories