Phalcon\Db\Adapter\MongoDB\Database::drop PHP Method

drop() public method

Drop this database.
See also: DropDatabase::__construct() for supported options
public drop ( array $options = [] ) : array | object
$options array Additional options
return array | object Command result document
    public function drop(array $options = [])
    {
        if (!isset($options['typeMap'])) {
            $options['typeMap'] = $this->typeMap;
        }
        $operation = new DropDatabase($this->databaseName, $options);
        $server = $this->manager->selectServer(new ReadPreference(ReadPreference::RP_PRIMARY));
        return $operation->execute($server);
    }