def remove_prefix(path_prefix: str, path: str) -> str:
    """Removes a prefix and everything that comes before it from a path.

    >>> remove_prefix("and", "here and there")
    ' there'
    >>> remove_prefix("missing", "some other string")
    'some other string'
    """
    before, _, after = path.partition(path_prefix)
    return after or before