react-native-screcorder
react-native-screcorder copied to clipboard
Cannot delete videos from device
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
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.
@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?