Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • C#

Idiom #155 Delete file

Delete from filesystem the file having path filepath.

using System.IO;
File.Delete(filepath);
with Ada.Directories;
Ada.Directories.Delete_File (filepath);

New implementation...
< >
programming-idioms.org