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

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.

主站蜘蛛池模板: 龙江县| 平定县| 盐源县| 灵山县| 阿拉善右旗| 富蕴县| 铜陵市| 湘潭县| 梧州市| 蒙山县| 福泉市| 克拉玛依市| 阜南县| 长垣县| 嘉峪关市| 长阳| 东乡族自治县| 且末县| 吴旗县| 道真| 靖安县| 中山市| 桐城市| 鸡泽县| 沾益县| 祁东县| 赣榆县| 镇原县| 鄄城县| 阿图什市| 永善县| 阳信县| 乌鲁木齐市| 云梦县| 长阳| 丁青县| 张家港市| 贺州市| 静宁县| 平潭县| 杂多县|