DeleteKey Method
Deletes the keyset associated with the provided name.
Syntax
[VB.NET] Public Sub DeleteKey(ByVal KeyName As String)
[C#] public void DeleteKey(string keyName);
Remarks
This method will delete the keyset (public/private key pair) associated with KeyName from the Cryptographic Service Provider (CSP). The CSP can be set using the CSP configuration setting.
NOTE: This functionality is only available in Windows.
NOTE: This method has a corresponding asynchronous version (DeleteKeyAsync) for use in the Xamarin environment.