This is the article for releasing the Twilio number using C# code.
Get an available Twilio number list to buy using c#