yii\mongodb\Database::dropCollection PHP Method

dropCollection() public method

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