aws iam remove-role-from-instance-profile
Removes the specified IAM role from the specified Amazon EC2 instance profile. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--instance-profile-nameThe name of the instance profile to update.--role-nameThe name of the role to remove.