/// <summary> /// this method will delete a flickr photograph given its id /// </summary> /// <param name="flickrAuth">authentication string</param> /// <param name="imageUID">id of image</param> /// <returns>true if success, false if error/fail</returns> public bool DeletePhotograph(string flickrAuth, string imageUID) { try { flickr.AuthToken = flickrAuth; flickr.PhotosDelete(imageUID); return(true); } catch (Exception ex) { return(false); } }
public static void DeleteFlickrImage(FlickrInfo flickrInfo) { // Make sure we remove it from the history, if no error occured config.runtimeFlickrHistory.Remove(flickrInfo.ID); config.flickrUploadHistory.Remove(flickrInfo.ID); Flickr flickr = new Flickr(Flickr_API_KEY, Flickr_SHARED_SECRET, config.flickrToken); flickr.PhotosDelete(flickrInfo.ID); flickr = null; flickrInfo.Image = null; }