My Iphone application is saving photos into document folder. I want to delete all these file form document folder after use. I know how to delete one file at time using path
if ([fileMgr removeItemAtPath:filePath error:&error] != YES)
NSLog(@"Unable to delete file: %@", [error localizedDescription]);
but i want to delete all file in one go. All my files are in .png format I tried out *.png but not working.
1 Answer