clearExternalStorage
Clears Stream files from the external storage directories.
This method removes all Stream-generated photos (STREAM_IMG_) from the Pictures directory and Stream-generated videos (STREAM_VID_) from the Movies directory.
Only files matching the Stream naming pattern are deleted:
Photos:
STREAM_IMG_{timestamp}.jpgVideos:
STREAM_VID_{timestamp}.mp4
Return
Result.Success if cleanup succeeded, or Result.Failure with an error
Parameters
context
Android context for accessing external storage directories