How to delete the right information of the database after the establishment of the right in mongoDB?

after logging in to mongodb
clipboard.png

show collections2
clipboard.png

db.system.users.find() :
clipboard.png


db.system.users.remove({user:"bear"})
clipboard.png

:
clipboard.png

now if you want to delete this right, what should I do?! Ask for advice

Mar.09,2021

username, password and permission are two different concepts of . For example, if your work card can walk into the access control downstairs, can you get into any office? So there's nothing wrong with the hint. You have plenty of readWrite roles that can read and write any collection of users. However, you do not have user management permissions, so you cannot delete users from the system.users collection. The user you are using must have the userAdmin role.
so try again for another user (there is nothing wrong with deleting the user's statement).

Menu