Share via


Delete Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Deletes a DirectoryInfo and its contents from a path.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Delete() () () () Deletes this DirectoryInfo if it is empty. (Overrides FileSystemInfo. . :: . .Delete() () () ().)
Public method Delete(Boolean) Deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files.

Top

See Also

Reference

DirectoryInfo Class

System.IO Namespace