diff --git a/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs b/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs index 9aa0cb4d..e51c94c4 100644 --- a/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs +++ b/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs @@ -1051,6 +1051,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.