C# How to delete all files and folders in a directory?

How to delete all files and folders in a directory?
Deletes a specified directory, and optionally any subdirectories.

System.IO.Directory.Delete

Has a 2nd overload that accepts a 2nd parameter that specifies whether to recursively delete the contents.

Overload List

Deletes an empty directory from a specified path.

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