private static void DeleteAgency(IamClient iamV3Client) { var deleteAgencyRequest = new DeleteAgencyRequest() { AgencyId = "" }; try { var deleteAgencyResponse = iamV3Client.DeleteAgency(deleteAgencyRequest); Console.WriteLine(JsonConvert.SerializeObject(deleteAgencyResponse.HttpStatusCode)); } catch (RequestTimeoutException requestTimeoutException) { Console.WriteLine(requestTimeoutException.ErrorMessage); } catch (ServiceResponseException clientRequestException) { Console.WriteLine(clientRequestException.HttpStatusCode); Console.WriteLine(clientRequestException.ErrorCode); Console.WriteLine(clientRequestException.ErrorMsg); } catch (ConnectionException connectionException) { Console.WriteLine(connectionException.ErrorMessage); } }