On this page本页内容
dropRole¶Deletes a user-defined role from the database on which you run the command.
The dropRole command uses the following syntax:
The dropRole command has the following fields:
dropRole |
string | The name of the user-defined role to remove from the database. |
writeConcern |
document | writeConcern document takes the same fields as the getLastError command. |
comment |
any |
A comment can be any valid BSON type (string, integer, object, array, etc).
|
The following operations remove the readPrices role from the products database: