src/Database/Model.php
public function delete()
    {
        $this->defaultTable();
        $this->eq($this->primary, $this->__get($this->primary));

        return DB::delete($this->sql);
    }
public function delete()
    {
        $this->defaultTable();
        $this->eq($this->primary, $this->__get($this->primary));

        return DB::delete($this->sql);
    }
public function delete ( ) { $ this -> defaultTable ( ) ; $ this -> eq ( $ this -> primary , $ this -> __get ( $ this -> primary ) ) ; return DB :: delete ( $ this -> sql ) ; }
function to delete current record in database.

@return bool
function to delete current record in database .