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

VDirectoryInfo.Delete Method

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

Delete()

Deletes a directory.

Declaration
public void Delete()
Remarks

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

Delete(Boolean)

Deletes a directory.

Declaration
public void Delete(bool recursive)
Parameters
Type Name Description
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()
  • Delete(Boolean)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies