public function delete()
    {
        if ($this->onBeforeDelete() === false) {
            return false;
        }

        $result = static::$bxObject->delete($this->id);

        $this->setEventErrorsOnFail($result, static::$bxObject);
        $this->onAfterDelete($result);
        $this->resetEventErrors();
        $this->throwExceptionOnFail($result, static::$bxObject);

        return $result;
    }
public function delete()
    {
        if ($this->onBeforeDelete() === false) {
            return false;
        }

        $result = static::$bxObject->delete($this->id);

        $this->setEventErrorsOnFail($result, static::$bxObject);
        $this->onAfterDelete($result);
        $this->resetEventErrors();
        $this->throwExceptionOnFail($result, static::$bxObject);

        return $result;
    }
public function delete ( ) { if ( $ this -> onBeforeDelete ( ) === false ) { return false ; } $ result = static :: $ bxObject -> delete ( $ this -> id ) ; $ this -> setEventErrorsOnFail ( $ result , static :: $ bxObject ) ; $ this -> onAfterDelete ( $ result ) ; $ this -> resetEventErrors ( ) ; $ this -> throwExceptionOnFail ( $ result , static :: $ bxObject ) ; return $ result ; }
Delete model.

@return bool
@throws ExceptionFromBitrix
Delete model .