Extensions.File.DeleteDirectory
Jump to navigation
Jump to search
Classification
Name | DeleteDirectory |
Short Description | Deletes a Directory on the specified path |
Class | Action |
Extension | OTX File extension |
Group | File related Actions |
Exceptions | FileLockException FileNotFoundException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
File.DeleteDirectory(StringTerm path);
Description
The DeleteDirectory activity deletes a Directory on the specified path. When deleting a directory, its contents will be deleted recursively.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Path | String | Term | - | [1..1] | The directory to delete. The path parameter is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the OTX home directory. The format of the path (e.g. case-sensitive) depends on the operating system. The path should be defined by a URI. |
OTL Examples
/// Local Declarations
File.FileWriteHandle FileWriteHandle1;
/// Flow
FileWriteHandle1 = File.OpenFileForWrite("file:///D:/abc/abc.txt", false, @Encoding:UTF-8);
File.CloseFile(FileWriteHandle1);
File.DeleteDirectory("D:/abc");
See also
CloseFile
DeleteFile
SaveFile
WriteBytes
WriteFile
WriteLine