src/articles/classes/Entity/Article.php
public function afterDelete()
    {
        /** @var Articles $plugin */
        $plugin = $this->getTable()->getPlugin();
        $basename = Eresus_Kernel::app()->getFsRoot() . '/data/' . $plugin->getName() .
            '/' . $this->id;
        $filename = $basename . '.jpg';
        if (file_exists($filename))
        {
            unlink($filename);
        }
        $filename = $basename . '-thmb.jpg';
        if (file_exists($filename))
        {
            unlink($filename);
        }
    }
public function afterDelete()
    {
        /** @var Articles $plugin */
        $plugin = $this->getTable()->getPlugin();
        $basename = Eresus_Kernel::app()->getFsRoot() . '/data/' . $plugin->getName() .
            '/' . $this->id;
        $filename = $basename . '.jpg';
        if (file_exists($filename))
        {
            unlink($filename);
        }
        $filename = $basename . '-thmb.jpg';
        if (file_exists($filename))
        {
            unlink($filename);
        }
    }
public function afterDelete ( ) { /** @var Articles $plugin */ $ plugin = $ this -> getTable ( ) -> getPlugin ( ) ; $ basename = Eresus_Kernel :: app ( ) -> getFsRoot ( ) . '/data/' . $ plugin -> getName ( ) . '/' . $ this -> id ; $ filename = $ basename . '.jpg' ; if ( file_exists ( $ filename ) ) { unlink ( $ filename ) ; } $ filename = $ basename . '-thmb.jpg' ; if ( file_exists ( $ filename ) ) { unlink ( $ filename ) ; } }
Дополнительные действия при удалении

@since 3.01
Дополнительные действия при удалении