public function deleteVariant()
    {
        $editObjectOxid = $this->getEditObjectId();
        $editObject = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $editObject->load($editObjectOxid);
        if ($editObject->isDerived()) {
            return;
        }

        $this->resetContentCache();

        $variantOxid = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestRawParameter("voxid");
        $variant = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $variant->delete($variantOxid);
    }