'Remove a health check from a target pool.
:param  targetpool: The targetpool to remove health check from
:type   targetpool: ``str`` or :class:`GCETargetPool`
:param  healthcheck: The healthcheck to remove
:type   healthcheck: ``str`` or :class:`GCEHealthCheck`
:return: True if successful
:rtype:  ``bool``'

def ex_targetpool_remove_healthcheck(self, targetpool, healthcheck):

    if (not hasattr(targetpool, 'name')):
        targetpool = self.ex_get_targetpool(targetpool)
    if (not hasattr(healthcheck, 'name')):
        healthcheck = self.ex_get_healthcheck(healthcheck)
    targetpool_data = {'healthChecks': [{'healthCheck': healthcheck.extra['selfLink']}]}
    request = ('/regions/%s/targetPools/%s/removeHealthCheck' % (targetpool.region.name, targetpool.name))
    self.connection.async_request(request, method='POST', data=targetpool_data)
    index = None
    for (i, hc) in enumerate(targetpool.healthchecks):
        if (hc.name == healthcheck.name):
            index = i
    if (index is not None):
        targetpool.healthchecks.pop(index)
    return True
