Table of Contents

Method RemoveUser

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

RemoveUser(MongoUser)

Removes a user from this database.

[Obsolete("Use RunCommand with a { dropUser: <username> } document.")]
public virtual void RemoveUser(MongoUser user)

Parameters

user MongoUser

The user to remove.

RemoveUser(string)

Removes a user from this database.

[Obsolete("Use RunCommand with a { dropUser: <username> } document.")]
public virtual void RemoveUser(string username)

Parameters

username string

The username to remove.