public bool Delete(MediaItem media) { var mediaHelper = new MediaHelper(media); mediaHelper.DeleteThumbnail(); return(_provider.Delete(media.FilePath)); }
public override bool Delete(string path) { try { serviceCloudStorage.LoadAsString(u.CrededentielCloudRailGoogle); serviceCloudStorage.Delete(path); return(true); }catch (Exception) { return(false); } }
//Delete file at Path - Delete(path) method used private void DeleteFileFolder(CloudMetaData metaData) { new System.Threading.Thread(new System.Threading.ThreadStart(() => { try { service.Delete(metaData.Path); RunOnUiThread(() => { Toast.MakeText(this, "File Delete", ToastLength.Short).Show(); this.GetChildrenAtPath("/"); }); } catch (Exception e) { Console.WriteLine(e.Message); } })).Start(); }