Delete()
Directory::Delete(const String&, bool) method
Removes the specified file or directory. Does not throw.
static void System::IO::Directory::Delete(const String &path, bool recursive=false)
Arguments
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.Slides