public DeleteLoginProfile ( |
||
request | Container for the necessary parameters to execute the DeleteLoginProfile service method. | |
return | Amazon.IdentityManagement.Model.DeleteLoginProfileResponse |
public static void DeleteTestUsers(AmazonIdentityManagementServiceClient client, params string[] usernames) { foreach (string s in usernames) { DeleteAccessKeysForUser(client, s); DeleteUserPoliciesForUser(client, s); DeleteCertificatesForUser(client, s); try { client.DeleteLoginProfile(new DeleteLoginProfileRequest() { UserName = s }); } catch { /* Nobody cares */ } client.DeleteUser(new DeleteUserRequest() { UserName = s }); } }