I tried using
NSString *DocumentsDirectoryPath = //Code to fetch the Documents Directory Path;
NSError *error;
NSFileManager *manager = [NSFileManager defaultManager];
[manager removeItemAtPath:DocumentsDirectoryPath error:&error];
The above code deletes the whole Documents directory of my app, but I just want to delete contents of the Documents directory not the Documents directory itself.
What should I do?