public function afterValidate(Model $model) {
        if (!empty($this->_tempFiles)) {
            foreach ($this->_tempFiles as $file) {
                $file->delete();
            }
            $this->_tempFiles = array();
        }

        return true;
    }
public function afterValidate(Model $model) {
        if (!empty($this->_tempFiles)) {
            foreach ($this->_tempFiles as $file) {
                $file->delete();
            }
            $this->_tempFiles = array();
        }

        return true;
    }
public function afterValidate ( Model $ model ) { if ( ! empty ( $ this -> _tempFiles ) ) { foreach ( $ this -> _tempFiles as $ file ) { $ file -> delete ( ) ; } $ this -> _tempFiles = array ( ) ; } return true ; }
Delete the temporary file.

@param Model $model
@return bool
Delete the temporary file .