开发者

How do I remove an admin user from a CouchDB database?

开发者 https://www.devze.com 2023-03-03 10:02 出处:网络
I know I can use the command: curl -X PUT http://admin:password@127.0.0.1:5984/_config/admins/admin -d \'\"password\"\'

I know I can use the command:

curl -X PUT http://admin:password@127.0.0.1:5984/_config/admins/admin -d '"password"'

开发者_如何学Go

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消