Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

couchdb

admin

I know I can use the command:

curl -X PUT http://admin:[email protected]:5984/_config/admins/admin -d '"password"'

to add a new admin to the server. How do I go about removing an admin user?

like image 613
blueberryfields Avatar asked May 05 '11 18:05

blueberryfields


Video Answer


1 Answers

You should be able to DELETE the user admin that you setup with:

curl -X DELETE http://admin:[email protected]: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.

like image 131
James C Avatar answered Oct 12 '22 23:10

James C