System::IO::Directory::Delete method
Directory::Delete method
Removes the specified file or directory. Does not throw.
static void System::IO::Directory::Delete(const String &path, bool recursive=false)
Parameter | Type | Description |
---|---|---|
path | const String& | The path to the directory or file to be removed |
recursive | bool | If path specifies a non-empty directory then recursive specifies if if all directory’s content should be removed recursively; if the directory specified by path is not empty and recursive is ‘false’ then the operation fails |
See Also
- Class String
- Class Directory
- Namespace System::IO
- Library Aspose.PUB for C++