I got the solution when I did this.
-(void)deleteClicked:(id)sender
{
UITableViewCell *clickedCell = (UITableViewCell *)[[sender superview] superview];
clickedButtonPath = [self.tableView indexPathForCell:clickedCell];
NSArray *arrayDelete = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectoryD = [arrayDelete objectAtIndex:0];
NSDictionary *dictOfplist1 = [contentArray objectAtIndex:clickedButtonPath.row];
NSString *pathTemp1 = [documentsDirectoryD stringByAppendingString:[dictOfplist1 objectForKey:@"fileVideoE"]];
BOOL succeed1 = [[NSFileManager defaultManager] removeItemAtPath:pathTemp1 error:nil];
NSString *pathTemp2 = [documentsDirectoryD stringByAppendingString:[dictOfplist1 objectForKey:@"fileImageE"]];
BOOL succeed2 = [[NSFileManager defaultManager] removeItemAtPath:pathTemp2 error:nil];
NSString *pathDelete = [documentsDirectoryD stringByAppendingString:@"/details.plist"];
[contentArray removeObjectAtIndex:[clickedButtonPath row]];
[contentArray writeToFile:pathDelete atomically: YES];
[self.tableView reloadData];
}
Every thing was fine the cell is removed, the data in the plist is removed the videos and images in Documents folder are removed.
Here is the image when I delete the 2nd row.
Thank You.
alt text http://www.freeimagehosting.net/uploads/f3c96ae3a7.png