I use Documents directory to save photos as jpeg file being used in my app.
I would like to delete all the files saved in Documents directory at one time.
Is there any way to do this?
Do I need to scan saved filename and delete them one by one?
Please advise me.
And just to expand on what Gargoyle said, I believe if you want to delete all the files in a directory but not delete the directory itself, then yes you will have to iterate over the files / subdirectories and delete them one by one. NSFileManager has a contentsOfDirectoryAtURL method for that purpose.