def remove_challenge_for_url(url):
    """ Removes the cached challenge for the specified URL.
    :param url: the URL for which to remove the cached challenge """
    if not url:
        raise ValueError("URL cannot be empty")

    url = parse.urlparse(url)

    with _lock:
        del _cache[url.netloc]