src/bundles/Database/Model.php
public function delete() 
	{
		$settings = static::_model();

		$result = DB::delete( $settings['table'] )
			->where( $settings['primary_key'], $this->_data_store[$settings['primary_key']] )
			->limit(1)
			->run( $settings['handler'] );

		$this->_data_store[$cache['primary_key']] = null;

		return $result;
	}
public function delete() 
	{
		$settings = static::_model();

		$result = DB::delete( $settings['table'] )
			->where( $settings['primary_key'], $this->_data_store[$settings['primary_key']] )
			->limit(1)
			->run( $settings['handler'] );

		$this->_data_store[$cache['primary_key']] = null;

		return $result;
	}
public function delete ( ) { $ settings = static :: _model ( ) ; $ result = DB :: delete ( $ settings [ 'table' ] ) -> where ( $ settings [ 'primary_key' ] , $ this -> _data_store [ $ settings [ 'primary_key' ] ] ) -> limit ( 1 ) -> run ( $ settings [ 'handler' ] ) ; $ this -> _data_store [ $ cache [ 'primary_key' ] ] = null ; return $ result ; }
Delete the current model from the database

@return DB\Model
Delete the current model from the database