using System.Security.Cryptography; // create a new RSACryptoServiceProvider RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(); // perform operations with rsa... // clear the key pair associated with rsa rsa.Clear();In this example, we create a new RSACryptoServiceProvider object, perform some operations with it, then call the Clear method to securely dispose of the key pair.