c# how to clear data from a string console code example Example: how to clear console in c# Console.Clear();