aws iam detach-role-policy
Removes the specified managed policy from the specified role. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--policy-arnThe Amazon Resource Name (ARN) of the IAM policy you want to detach.--role-nameThe name (friendly name, not ARN) of the IAM role to detach the policy from.