public function delete()
    {
        if (!$this->_canKept) {
            $this->forceDelete();
        } else {
            Query::table(static::$table)
            ->set('deleted_at', Time::current())
            ->where($this->_keyName, '=', $this->_keyValue)
            ->update();
        }
    }
public function delete()
    {
        if (!$this->_canKept) {
            $this->forceDelete();
        } else {
            Query::table(static::$table)
            ->set('deleted_at', Time::current())
            ->where($this->_keyName, '=', $this->_keyValue)
            ->update();
        }
    }
public function delete ( ) { if ( ! $ this -> _canKept ) { $ this -> forceDelete ( ) ; } else { Query :: table ( static :: $ table ) -> set ( 'deleted_at' , Time :: current ( ) ) -> where ( $ this -> _keyName , '=' , $ this -> _keyValue ) -> update ( ) ; } }
to delete the model from database
in case of Kept deleted just hide it.

@return bool
to delete the model from database in case of Kept deleted just hide it .