/// <summary> /// Supprime un fichier en fonction de son Id ou son chemin /// </summary> /// <param name="drive"></param> /// <param name="path"></param> /// <returns></returns> public bool Delete(Drive drive, string path, string fileId) { bool result = false; try { switch (drive) { case Drive.DP: DBB.Delete(path); break; case Drive.GG: Google.Delete(fileId); break; } result = true; } catch (Exception) { result = false; } return(result); }