diff --git a/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs b/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs index 33fbd781..ed032867 100644 --- a/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs +++ b/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs @@ -1049,6 +1049,20 @@ namespace IEC61850 throw new IedConnectionException ("Deleting file " + fileName + " failed", error); } + /// Delete file + /// The name of the file. + /// This exception is thrown if there is a connection or service error + public void DeleteFile(string fileName) + { + int error; + + IedConnection_deleteFile(connection, out error, fileName); + + if (error != 0) + throw new IedConnectionException("Deleting file " + fileName + " failed", error); + } + + /// Read the content of a file directory. /// The name of the directory. /// This exception is thrown if there is a connection or service error