react-native-screcorder icon indicating copy to clipboard operation
react-native-screcorder copied to clipboard

Cannot delete videos from device

Open shiba4life opened this issue 9 years ago • 2 comments

I'm trying to remove videos after they have been uploaded using react-native-fs. Even though react-native-fs is unlinking the file and it cannot be accessed anymore, the memory footprint for the app does not change. Is there a way to remove the recorded video files?

I raised this issue with react-native-fs repo but it might have something to do with where the videos are stored.

https://github.com/johanneslumpe/react-native-fs/issues/41#issuecomment-171796722

shiba4life avatar Jan 15 '16 17:01 shiba4life

Hi, Well normally the videos are not saved in the asset library but in a temporary directory, is the video removed if you close/open the app ? Maybe you could directly check if the file still exists after your delete it.

maxs15 avatar Jan 21 '16 14:01 maxs15

@tomtang539 did you ever figure this out? Also, how are you moving the video around? I actually in some cases want to keep the file locally on the device. My plan was just to move the private file using react-native-fs's moveFile method in the save callback. Do I need to also call unlink on the original temp file and does it work?

faceyspacey avatar Apr 08 '16 19:04 faceyspacey