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

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.

主站蜘蛛池模板: 台南县| 木兰县| 醴陵市| 衡南县| 乌拉特前旗| 出国| 安塞县| 田东县| 承德市| 襄樊市| 平乡县| 界首市| 潞西市| 息烽县| 梁河县| 都兰县| 汾西县| 绥滨县| 聊城市| 涟源市| 新龙县| 四川省| 彭阳县| 博湖县| 苍梧县| 长沙县| 林口县| 乌拉特前旗| 磐石市| 林周县| 上杭县| 古交市| 本溪市| 鹿泉市| 介休市| 武定县| 胶南市| 永吉县| 河间市| 平顶山市| 常山县|