public DeleteUserPolicy ( |
||
request | Container for the necessary parameters to execute the DeleteUserPolicy service method. | |
return | Amazon.IdentityManagement.Model.DeleteUserPolicyResponse |
public static void DeleteUserPoliciesForUser(AmazonIdentityManagementServiceClient client, string username) { ListUserPoliciesResponse response = client.ListUserPolicies(new ListUserPoliciesRequest() { UserName = username }); foreach (string pName in response.PolicyNames) { client.DeleteUserPolicy(new DeleteUserPolicyRequest() { UserName = username, PolicyName = pName }); } }