DeleteDirectoryOption Enumeration


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

Specifies what should be done when a directory that is to be deleted contains files or directories.

Namespace:   Microsoft.VisualBasic.FileIO
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public enum DeleteDirectoryOption

Member nameDescription

Delete the contents of the directory along with the directory. Default.


Throw an IOException if the directory is not empty. The Data property of the exception lists the file(s) that could not be deleted.

This enumeration is used with the DeleteDirectory method.

.NET Framework
Available since 2.0
Return to top