private static void DeleteData() { Console.Write("\nInsert the key to delete the data: "); try { string key = Console.ReadLine(); currentBroker.DeleteData(key); Console.WriteLine("\nDeleted data with the key - {0}!", key); } catch (FaultException <BrokerExceptionFaultContract> e) { Console.WriteLine("\n" + e.Detail.Message); } }