AlgoliaSearch\Client::deleteIndex PHP Method

deleteIndex() public method

Delete an index.
public deleteIndex ( string $indexName ) : mixed
$indexName string the name of index to delete
return mixed an object containing a "deletedAt" attribute
    public function deleteIndex($indexName)
    {
        return $this->request($this->context, 'DELETE', '/1/indexes/' . urlencode($indexName), null, null, $this->context->writeHostsArray, $this->context->connectTimeout, $this->context->readTimeout);
    }

Usage Example

 public function deleteIndex($index_name)
 {
     $this->checkClient(__FUNCTION__);
     $this->client->deleteIndex($index_name);
 }
All Usage Examples Of AlgoliaSearch\Client::deleteIndex