public DeleteUser ( |
||
request | Container for the necessary parameters to execute the DeleteUser service method. | |
리턴 | Amazon.IdentityManagement.Model.DeleteUserResponse |
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 }); } }