My Iphone application saves photos in a folder with documents. After use, I want to delete this entire folder with the file form. I know how to delete one file at a time using the path
if ([fileMgr removeItemAtPath:filePath error:&error] != YES) NSLog(@"Unable to delete file: %@", [error localizedDescription]);
but I want to delete the whole file in one go. All my files are in .png format. I tried * .png but did not work.
source share