diff --git a/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs b/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs index aef42ee1..33fbd781 100644 --- a/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs +++ b/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs @@ -1035,6 +1035,18 @@ namespace IEC61850 if (error != 0) throw new IedConnectionException ("Write value 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.