This version of Unity is unsupported.

VisualElement.Hierarchy.Remove

public void Remove(UIElements.VisualElement child);

Description

Removes this child from the hierarchy