Entity/WidgetUser.php
public function removeWidgetConfig(string $widgetId, array $config = [])
    {
        foreach ($config as $id => $content) {
            if (isset($this->config[$widgetId][$id])) {
                unset($this->config[$widgetId][$id]);
            }
        }

        return $this;
    }
public function removeWidgetConfig(string $widgetId, array $config = [])
    {
        foreach ($config as $id => $content) {
            if (isset($this->config[$widgetId][$id])) {
                unset($this->config[$widgetId][$id]);
            }
        }

        return $this;
    }
Remove Widget Config.

@param string $widgetId
@param array  $ids

@return $this