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

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.

主站蜘蛛池模板: 桃江县| 长治县| 曲周县| 青冈县| 四川省| 馆陶县| 株洲县| 巴彦县| 永德县| 黑河市| 通渭县| 大余县| 富顺县| 高陵县| 博野县| 濉溪县| 诏安县| 揭阳市| 河西区| 昭平县| 白河县| 青川县| 大邑县| 甘孜县| 钦州市| 平顶山市| 临泽县| 晋州市| 阿合奇县| 双辽市| 娱乐| 石阡县| 健康| 咸阳市| 玉龙| 怀来县| 贺州市| 新密市| 宁津县| 崇州市| 石狮市|