src/Operation/DeleteOperation.php
public function execute(ARef $aRef, ImageSetting $imageSetting)
    {
        $this->checkOwner($aRef);

        $this->deleteAllFiles($aRef, $imageSetting);

        $this->dbAgent->deleteImage($aRef, $imageSetting);

        $resizes = $imageSetting->getResizes();
        foreach($resizes as $resizeSetting)
        {
            $this->dbAgent->deleteResize($aRef, $imageSetting, $resizeSetting);
        }

        $crops = $imageSetting->getCrops();
        foreach($crops as $cropSetting)
        {
            $this->dbAgent->deleteCrop($aRef, $imageSetting, $cropSetting);
        }
    }
public function execute(ARef $aRef, ImageSetting $imageSetting)
    {
        $this->checkOwner($aRef);

        $this->deleteAllFiles($aRef, $imageSetting);

        $this->dbAgent->deleteImage($aRef, $imageSetting);

        $resizes = $imageSetting->getResizes();
        foreach($resizes as $resizeSetting)
        {
            $this->dbAgent->deleteResize($aRef, $imageSetting, $resizeSetting);
        }

        $crops = $imageSetting->getCrops();
        foreach($crops as $cropSetting)
        {
            $this->dbAgent->deleteCrop($aRef, $imageSetting, $cropSetting);
        }
    }
@param \Interpro\Core\Contracts\Ref\ARef $aRef
@param \Interpro\ImageAggr\Contracts\Settings\ImageSetting $imageSetting

@return void