We published an app for iOS which accidentally stores a ton of photos in "Data & Documents". The app is live on the App Store, but currently the only way for a user to delete this bloat is to uninstall and re-install the app. Updating does not delete it.
We fixed the bug, and put in a notice on the App Store page, but we'd rather take care of this on our end.
The app was developed using Unreal Engine 5.1.1. The bloat is caused by Apple ARKit having had the should_write_camera_image_per_frame
turned on (see https://docs.unrealengine.com/5.0/en-US/PythonAPI/class/AppleARKitSettings.html). The images are saved to Container/Documents/CameraImages
.
How can we make it so the next version we push to App Store will delete the contents of this folder upon launch?