source/Application/Model/File.php
public function delete($sOxId = null)
    {
        $sOxId = $sOxId ? $sOxId : $this->getId();

        $this->load($sOxId);
        // if record cannot be delete, abort deletion
        if ($blDeleted = parent::delete($sOxId)) {
            $this->_deleteFile();
        }

        return $blDeleted;
    }
public function delete($sOxId = null)
    {
        $sOxId = $sOxId ? $sOxId : $this->getId();

        $this->load($sOxId);
        // if record cannot be delete, abort deletion
        if ($blDeleted = parent::delete($sOxId)) {
            $this->_deleteFile();
        }

        return $blDeleted;
    }
public function delete ( $ sOxId = null ) { $ sOxId = $ sOxId ? $ sOxId : $ this -> getId ( ) ; $ this -> load ( $ sOxId ) ; // if record cannot be delete, abort deletion if ( $ blDeleted = parent :: delete ( $ sOxId ) ) { $ this -> _deleteFile ( ) ; } return $ blDeleted ; }
Deletes oxFile record from DB, removes orphan files.

@param string $sOxId default null

@return bool
Deletes oxFile record from DB removes orphan files .