```python
def path_clean(path: str) -> str:
    """
    Clean a path by removing segments of two dots.
    
    Args:
        path (str): The path to clean.

    Returns:
        str: The cleaned path.
    """
    if not path:
        return ""
    
    # Split the path into segments
    segments = path.split('/')
    
    # Use a stack to keep track of segments
    stack = []
    
    for segment in segments:
        if segment == '..':
            if stack:
                stack.pop()
        elif segment != '.':
            stack.append(segment)
    
    # Join the remaining segments with '/'
    return '/' + '/'.join(stack)
```