title: delete/hide file from itunes library used in my iphone application
body: <p>I have made an iphone application in which i am getting songs from itunes library and display in table as well as store them in my document directory. Now i want to make it secret..So i want to delete the selected file from itunes library so it wont be displayed in list. Can anyone help me to do this??
  Code:</p>
  
  <pre><code>importableDoc = [NSMutableArray array];
  // Get public docs dir
  NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  NSString *publicDocumentsDir = [paths objectAtIndex:0];   
  
  // Get contents of documents directory
  NSError *error;
  NSArray *files = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:publicDocumentsDir error:&amp;error];
  if (files == nil) {
      NSLog(@"Error reading contents of documents directory: %@", [error localizedDescription]);
  }
  
  // Add all mp3 files to a list    
  
  for (NSString *file in files) {
      if ([file.pathExtension compare:@"mp3" options:NSCaseInsensitiveSearch] == NSOrderedSame) 
      {        
  
          NSString *fullPath = [publicDocumentsDir stringByAppendingPathComponent:file];
                  //NSLog(@"fullPath : %@",fullPath);
  
          [importableDoc addObject:fullPath];
      }
    }
  }
  </code></pre>