yii\mongodb\Migration::dropAllIndexes PHP Method

dropAllIndexes() public method

Drops all indexes for specified collection.
public dropAllIndexes ( string | array $collection )
$collection string | array name of the collection.
    public function dropAllIndexes($collection)
    {
        $this->beginProfile($token = "    > drop all indexes on " . $this->composeCollectionLogName($collection) . ") ...");
        $this->db->getCollection($collection)->dropAllIndexes();
        $this->endProfile($token);
    }