Foreach (String S in Directory.GetFiles ()) {if (S.StartSwith ("ab")) {Directory.Delete (s);}} or
Directory.delete (s); -------------- file.delete (s);
Execute the DOS command DEL as Process.start ("CMD Del Ab * .txt") with process.start; // should pay attention to the directory