def METHOD_NAME(cls, url: str) -> StorageTarget:
    """Create a storage target from a file URL.
    Args:
        url: The URL to create the storage target from.
    Returns:
        The created storage target.
    """
    parsed_url = urlparse(url)
    new_url = parsed_url._replace(query="")
    return cls(root=new_url.geturl())