lib/Doctrine/CouchDB/MangoClient.php
public function deleteMangoIndex($ddoc, $name)
  {
      $documentPath = '/'.$this->databaseName.'/_index/_design/'.$ddoc.'/json/'.$name;
      $response = $this->httpClient->request('DELETE', $documentPath);

      return (isset($response->body['ok'])) ? true : false;
  }
public function deleteMangoIndex($ddoc, $name)
  {
      $documentPath = '/'.$this->databaseName.'/_index/_design/'.$ddoc.'/json/'.$name;
      $response = $this->httpClient->request('DELETE', $documentPath);

      return (isset($response->body['ok'])) ? true : false;
  }
public function deleteMangoIndex ( $ ddoc , $ name ) { $ documentPath = '/' . $ this -> databaseName . '/_index/_design/' . $ ddoc . '/json/' . $ name ; $ response = $ this -> httpClient -> request ( 'DELETE' , $ documentPath ) ; return ( isset ( $ response -> body [ 'ok' ] ) ) ? true : false ; }
Delete a mango query index and return the HTTP response.

@param string $ddoc - design document name
@param string $name - view name
Delete a mango query index and return the HTTP response .