OTX Reference  
OpenTestSystem.Otx.Extensions.File.Actions.DeleteFile Class Reference

Deletes a File on the specified path. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.File.Actions.DeleteFile:
Inheritance graph

Public Attributes

StringTerm path
 The file to delete. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Deletes a File on the specified path.

The DeleteFile activity deletes a File on the specified path.

Exceptions
Exceptions.FileLockException
Exceptions.FileNotFoundException


Syntax
File.DeleteFile(StringTerm path);
StringTerm path
The file to delete.
Definition: File.cs:707
Examples
// Local Declarations
File.FileWriteHandle FileWriteHandle1;
// Flow
FileWriteHandle1 = File.OpenFileForWrite("file:///D:/abc/abc.txt", false, @Encoding:UTF-8);
File.CloseFile(FileWriteHandle1);
File.DeleteFile("file:///D:/abc/abc.txt");

Member Data Documentation

◆ path

StringTerm OpenTestSystem.Otx.Extensions.File.Actions.DeleteFile.path

The file to delete.