How to delete an image from storage after picking it with image_picker?

Hi, I am developing a private gallery app on which the user can add his/her images and videos from his gallery and then my app would copy the image/video to the applications directory and delete the original image/video from the original path ( Camera, Pictures, Download, etc. folders). I wanted to use a native file picker so that the user can easily find his/her images/videos. I tried using ‘file_picker’ and ‘image_picker’ packages but both of them return a path to the cached copy of the original image/video so I couldn’t get the actual path of the image/video to delete it using File class. Is there any other way to be able to delete the images/videos while still using a native file picker.