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).

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9ddf6-1995.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9ddf6-1995.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?