Example #1
0
 /// <summary>Deletes the specified files or directories to the Recycle Bin.</summary>
 /// <param name="paths">The full paths of the file or directory.</param>
 /// <param name="hideUI"><see langword="true"/> to hide all user interface interactions; <see langword="false"/> to allow them.</param>
 public static void DeleteToRecycleBin(IEnumerable <string> paths, bool hideUI = false) => ShellFileOperations.Delete(paths.Select(p => new ShellItem(p)), GetDeleteOpFlags(hideUI));
Example #2
0
 /// <summary>Deletes the specified file or directory to the Recycle Bin.</summary>
 /// <param name="path">The full path of the file or directory.</param>
 /// <param name="hideUI"><see langword="true"/> to hide all user interface interactions; <see langword="false"/> to allow them.</param>
 public static void DeleteToRecycleBin(string path, bool hideUI = false) => ShellFileOperations.Delete(path, GetDeleteOpFlags(hideUI));