```python
from typing import *
from collections import *

def path_clean(path: str) -> str:
    if not path:
        return ""

    cleaned_path = []
    for i, segment in enumerate(path.split('/')):
        if segment == '..':
            if cleaned_path and cleaned_path[-1] != '':
                cleaned_path.pop()
        elif segment != '.':
            cleaned_path.append(segment)

    return '/'.join(cleaned_path)
```