I have a album photo core data model. The photo entity has a column for the path of the actual photo files saved on disk. What is the the best practice for delete a photo and a album? Do I have to manually delete the file on disk before delete the item in core date? It's easy for a photo object. But for a album, the photos could have been deleted by the cascade deletion rule, now need to be looped one by one to handle the files.
What's the best practice for my case?
(I decided no to use "allow external storage" for other concerns)