public function delete()
    {
        $db = $this->getConnection();
        return $db->delete(
            $this->getDatabase() . urlencode( $this->_id ) . '?rev=' . $this->_rev
        ); 
    }
public function delete()
    {
        $db = $this->getConnection();
        return $db->delete(
            $this->getDatabase() . urlencode( $this->_id ) . '?rev=' . $this->_rev
        ); 
    }
public function delete ( ) { $ db = $ this -> getConnection ( ) ; return $ db -> delete ( $ this -> getDatabase ( ) . urlencode ( $ this -> _id ) . '?rev=' . $ this -> _rev ) ; }
Deletes the current document

Tries to delete the current document from the database. Might throw a
conflict exception in case the document has been modified since the last
fetch.

@return void
Deletes the current document