How can I delete video stored in the photo library ?
- by srikanth rongali
I have saved video in to the photo library.
-(void)exportVideo:(id)sender
{
NSString *path = [DOCUMENTS_FOLDER stringByAppendingString:@"/air.mp4"];
NSLog(@"Path:%@", path);
NSLog(@"Export Button CLicked");
UISaveVideoAtPathToSavedPhotosAlbum(path, self, @selector(video:didFinishSavingWithError: contextInfo:), nil);
}
- (void)video:(NSString *)videoPath didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
{
NSLog(@"Finished saving video with error: %@", error);
}
Now I need to delete the video i have stored programmatically. How can I delete the video ?
Are there any functions for it?
Thank You.