core-bundle/src/DataContainer/PaletteManipulator.php
public function removeField($name, string $legend = null): self
    {
        $this->removes[] = [
            'fields' => (array) $name,
            'parents' => (array) $legend,
        ];

        return $this;
    }
public function removeField($name, string $legend = null): self
    {
        $this->removes[] = [
            'fields' => (array) $name,
            'parents' => (array) $legend,
        ];

        return $this;
    }
If no legend is given, the field is removed everywhere.

@param string|array $name