Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

VDirectory.Delete Method

Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

Delete(String)

Deletes a directory identified by the path.

Declaration
public static void Delete(string path)
Parameters
Type Name Description
String path

The path of the directory that should be deleted.

Remarks

Method deletes only an empty directory. When a directory is not empty then IOException is thrown.

Delete(String, Boolean)

Deletes a directory identified by the path.

Declaration
public static void Delete(string path, bool recursive)
Parameters
Type Name Description
String path

The path to the directory that should be deleted.

Boolean recursive

When the argument is true then this method deletes all files and directories in the directory recursively. When the argument is false and a directory is not empty then this method throws the IOException.

In This Article
  • Delete(String)
  • Delete(String, Boolean)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies