官术网_书友最值得收藏!

Time for action — deleting a database In CouchDB

In this exercise, we'll call a DELETE request to delete the another-db database.

  1. Delete another-db by running the following command in Terminal:
    curl -X DELETE http://localhost:5984/another-db 
    
  2. Terminal will respond with the following:
    {"ok":true} 
    

What just happened?

We used Terminal to trigger a DELETE method to CouchDB's RESTful JSON API. We passed the name of the database that we wanted to delete, another-db, at the end of the root URL. When the database was successfully deleted, we received a message that everything went okay.

主站蜘蛛池模板: 普兰县| 固阳县| 武冈市| 吉木萨尔县| 黎川县| 武隆县| 丽江市| 景泰县| 抚宁县| 华坪县| 阳东县| 项城市| 武穴市| 祁门县| 平乡县| 涿鹿县| 皮山县| 荆门市| 凌海市| 金秀| 库车县| 清原| 宝山区| 新干县| 安西县| 晋城| 桓台县| 夏河县| 梨树县| 合山市| 定西市| 社会| 辉南县| 苏尼特左旗| 康马县| 女性| 白水县| 裕民县| 东至县| 大连市| 通化市|