def remove_query_string(url):
    """
    Removes query string from a url
    :param url: string with a url
    :return: clean base url
    """
    if not isinstance(url, str):
        raise TypeError('Argument must be a string')
    return url.split('?')[0]
