Remove path components.