DirectoryHelper DeleteDirectory Method (String, Boolean)Kentico 8.1 API Reference
Deletes the directory. It works also in a shared hosting environment.

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

path
Type: OnlineSystem String
Full disk path of the directory to delete
recursive
Type: OnlineSystem Boolean
If true, the directory is deleted recursively
See Also