title: Delete specified file from document directory
body: <p>I want to delete an image from my app document directory. Code I have written to delete image is:   </p>
  
  <pre><code> -(void)removeImage:(NSString *)fileName
  {
      fileManager = [NSFileManager defaultManager];
      paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
      documentsPath = [paths objectAtIndex:0];
      filePath = [documentsPath stringByAppendingPathComponent:[NSString stringWithFormat:@"%@", fileName]];
      [fileManager removeItemAtPath:filePath error:NULL];
      UIAlertView *removeSuccessFulAlert=[[UIAlertView alloc]initWithTitle:@"Congratulation:" message:@"Successfully removed" delegate:self cancelButtonTitle:@"Close" otherButtonTitles:nil];
      [removeSuccessFulAlert show];
  }
  </code></pre>
  
  <p>Its working partially. This code deleting file from directory, but when I'm checking for the contents in directory, it still showing the image name there. I want to completely remove that file from directory. What should I change in the code to do the same? Thanks</p>