yii\mongodb\Database::dropCollection PHP Méthode

dropCollection() public méthode

Drops specified collection.
Since: 2.1
public dropCollection ( string $name ) : boolean
$name string name of the collection
Résultat boolean whether operation was successful.
    public function dropCollection($name)
    {
        return $this->createCommand()->dropCollection($name);
    }