Deletes all user-defined roles on the database where you run the command.
dropAllRolesFromDatabasecommand takes the following form:
The command has the following fields:
Field Type Description
1to drop all user-defined roles from the database where the command is run.
document Optional. The level of write concern for the removal operation. The
writeConcerndocument takes the same fields as the
The following operations drop all user-defined roles from the
n field in the results document reports the number of roles dropped: