original_string: public function delete($id, $rev)
    {
      if(!$this->db) {
        throw new SagException('No database specified');
      }
  
      if(!is_string($id) || !is_string($rev) || empty($id) || empty($rev)) {
        throw new SagException('delete() expects two strings.');
      }
  
      $url = "/{$this->db}/$id";
  
      if($this->cache) {
        $this->cache->remove($url);
      }
  
      return $this->procPacket('DELETE', $url.'?rev='.urlencode($rev));
    }
code: public function delete($id, $rev)
    {
      if(!$this->db) {
        throw new SagException('No database specified');
      }
  
      if(!is_string($id) || !is_string($rev) || empty($id) || empty($rev)) {
        throw new SagException('delete() expects two strings.');
      }
  
      $url = "/{$this->db}/$id";
  
      if($this->cache) {
        $this->cache->remove($url);
      }
  
      return $this->procPacket('DELETE', $url.'?rev='.urlencode($rev));
    }
code_tokens: public function delete ( $ id , $ rev ) { if ( ! $ this -> db ) { throw new SagException ( 'No database specified' ) ; } if ( ! is_string ( $ id ) || ! is_string ( $ rev ) || empty ( $ id ) || empty ( $ rev ) ) { throw new SagException ( 'delete() expects two strings.' ) ; } $ url = "/{$this->db}/$id" ; if ( $ this -> cache ) { $ this -> cache -> remove ( $ url ) ; } return $ this -> procPacket ( 'DELETE' , $ url . '?rev=' . urlencode ( $ rev ) ) ; }
docstring: DELETE's the specified document.
  
  @param string $id The document's _id.
  @param string $rev The document's _rev.
  
  @return mixed
docstring_tokens: DELETE s the specified document .