Home »
MCQs »
CouchDB MCQs
Which is the correct command that is used to delete an existing CouchDB database using cURL utility?
18. Which is the correct command that is used to delete an existing CouchDB database using cURL utility?
- $ curl -X DELETE http://127.0.0.1:5984/database_name
- $ curl -X DELETE http://127.0.0.1:5984/_database_name
- $ curl -X DELETE http://127.0.0.1:5984/document/database_name
- $ curl -X DELETE http://127.0.0.1:5984/document/_database_name
Answer: A) $ curl -X DELETE http://127.0.0.1:5984/database_name
Explanation:
The following command can be used to delete an existing CouchDB database using cURL utility,
$ curl -X DELETE http://127.0.0.1:5984/database_name