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