Man Page: mongocollection.deleteindexes
Operating Environment: php
Section: 3
MONGOCOLLECTION.DELETEINDEXES(3) 1 MONGOCOLLECTION.DELETEINDEXES(3) MongoCollection::deleteIndexes - Delete all indices for this collectionSYNOPSISpublic array MongoCollection::deleteIndexes (void )DESCRIPTIONPARAMETERSThis function has no parameters.RETURN VALUESReturns the database response.EXAMPLESExample #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 ALSOMongoCollection::createIndex, MongoCollection::deleteIndex. PHP Documentation Group MONGOCOLLECTION.DELETEINDEXES(3)
| Related Man Pages |
|---|
| mongogridfs(3) - php |
| mongocollection.find(3) - php |
| mongocollection.group(3) - php |
| mongocollection.parallelcollectionscan(3) - php |
| mongocollection.findone(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| Simple rules of the UNIX.COM forums: |
| Forum Video Tutorial: How to Use Code Tags |
| UNIX.COM 2017 Year End Summary |
| New Code Tags (Syntax Highlighting) |
| Status of UNIX.COM Forum Transformation |