DirectoryInfo.Delete Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Deletes a DirectoryInfo and its contents from a path.

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

NameDescription
System_CAPS_pubmethodDelete()

Deletes this DirectoryInfo if it is empty.(Overrides FileSystemInfo.Delete().)

System_CAPS_pubmethodDelete(Boolean)

Deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files.

Return to top
Show: