Share via


Directory.Delete Method

Deletes the specified directory and, if indicated, any subdirectories in the directory.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public static void Delete (
         stringpath,
         boolrecursive
)

Parameters

  • path
    The name of the directory to remove.
  • recursive
    true to remove directories, subdirectories, and files in path; otherwise, false.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.

See Also

Reference

Directory Class
Directory Members
System.IO Namespace