def delete_iam_role(config, iam):
    """ Deletes the IAM role used by the Redshift cluster

    Args:
        config: a ConfigParser object
        iam: a boto3 client object for the AWS IAM service

    Returns:
        dict with AWS API response
    """
    try:
        print("Deleting IAM Role: ", config['IAM_ROLE']['NAME'])
        return iam.delete_role(RoleName=config['IAM_ROLE']['NAME'])
    except Exception as e:
        print(e)