- CouchDB and PHP Web Development Beginner’s Guide
- Tim Juravich
- 92字
- 2021-08-13 18:22:53
Time for action — deleting a database In CouchDB
In this exercise, we'll call a DELETE
request to delete the another-db
database.
- Delete
another-db
by running the following command in Terminal:curl -X DELETE http://localhost:5984/another-db
- 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.
推薦閱讀
- Learning Scala Programming
- C++案例趣學(xué)
- Python從小白到大牛
- Vue.js 2 and Bootstrap 4 Web Development
- 算法精粹:經(jīng)典計(jì)算機(jī)科學(xué)問題的Python實(shí)現(xiàn)
- Hands-On JavaScript High Performance
- Nginx Essentials
- 網(wǎng)絡(luò)爬蟲原理與實(shí)踐:基于C#語言
- AppInventor實(shí)踐教程:Android智能應(yīng)用開發(fā)前傳
- C語言程序設(shè)計(jì)
- 零基礎(chǔ)入門學(xué)習(xí)Python(第2版)
- Mastering Backbone.js
- Learning YARN
- Python程序設(shè)計(jì)與算法基礎(chǔ)教程(第2版)(微課版)
- 從0到1:HTML5 Canvas動(dòng)畫開發(fā)