srinivas n :
Try this. I think the array gives the information of file with modification date.\n\nTry to create one function depending on date comparison and delete the files. \n\nNSArray * arrayOfURLs = [fileManager contentsOfDirectoryAtURL:URL \n includingPropertiesForKeys:@[NSURLIsDirectoryKey, \n NSURLNameKey, \n NSURLFileSizeKey, \n NSURLContentModificationDateKey,\n NSURLLocalizedTypeDescriptionKey]\n options:NSDirectoryEnumerationSkipsHiddenFiles \n error:nil];\n",
2013-09-12T10:49:27