public function delete($documentId, $rev)
    {
        $context = array('http' => array());
        $context['http']['method'] = 'DELETE';

        list($status, $response) = $this->sendRequest($documentId . '?rev=' . $rev, $context);
        unset($response);

        if ($status != 200) {
            throw new Exception\Response('DELETE - Unknown response status.');
        }

        if ($this->getCache($documentId)) {
            unset($this->cache[$documentId]);
        }

        return true;
    }
public function delete($documentId, $rev)
    {
        $context = array('http' => array());
        $context['http']['method'] = 'DELETE';

        list($status, $response) = $this->sendRequest($documentId . '?rev=' . $rev, $context);
        unset($response);

        if ($status != 200) {
            throw new Exception\Response('DELETE - Unknown response status.');
        }

        if ($this->getCache($documentId)) {
            unset($this->cache[$documentId]);
        }

        return true;
    }
public function delete ( $ documentId , $ rev ) { $ context = array ( 'http' => array ( ) ) ; $ context [ 'http' ] [ 'method' ] = 'DELETE' ; list ( $ status , $ response ) = $ this -> sendRequest ( $ documentId . '?rev=' . $ rev , $ context ) ; unset ( $ response ) ; if ( $ status != 200 ) { throw new Exception \ Response ( 'DELETE - Unknown response status.' ) ; } if ( $ this -> getCache ( $ documentId ) ) { unset ( $ this -> cache [ $ documentId ] ) ; } return true ; }
Delete document by ID.

@param string $documentId Document ID.
@param string $rev Document revision ID.
@link http://wiki.apache.org/couchdb/HTTP_Document_API#DELETE
@throws \Chill\Exception\Response
@return bool|void
Delete document by ID .