source/Core/PictureHandler.php
public function deleteMainIcon($oObject)
    {
        if (($sMainIcon = $oObject->oxarticles__oxicon->value)) {
            $sPath = \OxidEsales\Eshop\Core\Registry::getConfig()->getPictureDir(false) . \OxidEsales\Eshop\Core\Registry::getUtilsFile()->getImageDirByType("ICO");
            \OxidEsales\Eshop\Core\Registry::getUtilsPic()->safePictureDelete($sMainIcon, $sPath, "oxarticles", "oxicon");
        }
    }
public function deleteMainIcon($oObject)
    {
        if (($sMainIcon = $oObject->oxarticles__oxicon->value)) {
            $sPath = \OxidEsales\Eshop\Core\Registry::getConfig()->getPictureDir(false) . \OxidEsales\Eshop\Core\Registry::getUtilsFile()->getImageDirByType("ICO");
            \OxidEsales\Eshop\Core\Registry::getUtilsPic()->safePictureDelete($sMainIcon, $sPath, "oxarticles", "oxicon");
        }
    }
public function deleteMainIcon ( $ oObject ) { if ( ( $ sMainIcon = $ oObject -> oxarticles__oxicon -> value ) ) { $ sPath = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getPictureDir ( false ) . \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsFile ( ) -> getImageDirByType ( "ICO" ) ; \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsPic ( ) -> safePictureDelete ( $ sMainIcon , $ sPath , "oxarticles" , "oxicon" ) ; } }
Deletes custom main icon, which name is specified in oxicon field.

@param \OxidEsales\Eshop\Application\Model\Article $oObject article object
Deletes custom main icon which name is specified in oxicon field .