I know I can use the command:
开发者_如何学Gocurl -X PUT http://admin:password@127.0.0.1:5984/_config/admins/admin -d '"password"'
to add a new admin to the server. How do I go about removing an admin user?
You should be able to DELETE the user admin
that you setup with:
curl -X DELETE http://admin:password@127.0.0.1:5984/_config/admins/admin
Note this is a bad example as you're deleting the user that you're authenticating as. The last part of the URL admin
is the name of the user.
精彩评论