mongocollection.deleteindexes(3) php man page | unix.com

Man Page: mongocollection.deleteindexes

Operating Environment: php

Section: 3

MONGOCOLLECTION.DELETEINDEXES(3)					 1					  MONGOCOLLECTION.DELETEINDEXES(3)

MongoCollection::deleteIndexes - Delete all indices for this collection

SYNOPSIS
public array MongoCollection::deleteIndexes (void )
DESCRIPTION
PARAMETERS
This function has no parameters.
RETURN VALUES
Returns the database response.
EXAMPLES
Example #1 MongoCollection.deleteIndexes(3) example This example demonstrates how to delete all indexes from a collection and the response to expect. <?php $collection = $mongo->my_db->articles; $response = $collection->deleteIndexes(); print_r($response); ?> The above example will output something similar to: Array ( [nIndexesWas] => 1 [msg] => all indexes deleted for collection [ok] => 1 )
SEE ALSO
MongoCollection::createIndex, MongoCollection::deleteIndex. PHP Documentation Group MONGOCOLLECTION.DELETEINDEXES(3)
Related Man Pages
mongocollection.getreadpreference(3) - php
mongocollection.aggregatecursor(3) - php
mongocollection.insert(3) - php
mongocollection.save(3) - php
mongocollection.parallelcollectionscan(3) - php
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
User Guide: Posting in the Emergency Forum
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Please Welcome Nicki Paul to the Moderator Team!