CouchDB Deleting DataBase
Lets dive right in and Deleting your first CouchDB DataBase .Deleting a database is very simple - just type the command in your terminal window or command prompt.If you have to Delete a database then you must send an HTTP request to the server using the Delete method through the cURL utility.
Deleting a Database using cURL Utility
$ curl -X DELETE http://127.0.0.1:5984/database-name
Example :
. We will be working on the contacts database, so you have no need for the "couch-db" database.Command to delete "couch-db" database is :-
$ curl -X DELETE http://127.0.0.1:5984/couch-db
{
"ok" : true
}
When the database is Deleted, CouchDB responds with the following JSON object.{"0k": true}.The previous message basically means that the operation was successful and there was no error in CouchDB process of Deleting a couch-db database.
An error message will be generated when you attempt to delete the database which does not exist.
$ curl -X DELETE http://127.0.0.1:5984/couch-db
This time, the response you received should be an error message saying that the database does not exist.
{"error": "not found", "reason": "Missing"}
Verification :
Now that you have Deleted a database, let's ask CouchDB to specify which databases are currently available on the server.As you see there is not a database named "couch-db" in the list. So it is proved that the database has been deleted.
$ curl -X GET http://127.0.0.1:5984/_all_dbs
[ " letsfindcourse " , " contacts " ]
Visit :
Discussion
pHqghUme
-1 OR 2+917-917-1=0+0+0+1 --
pHqghUme
-1 OR 3+917-917-1=0+0+0+1 --
pHqghUme
-1 OR 3*2<(0+5+917-917) --
pHqghUme
-1 OR 3*2>(0+5+917-917) --
pHqghUme
-1 OR 2+66-66-1=0+0+0+1
pHqghUme
-1 OR 3+66-66-1=0+0+0+1
pHqghUme
-1 OR 3*2<(0+5+66-66)
pHqghUme
-1 OR 3*2>(0+5+66-66)
pHqghUme
-1' OR 2+483-483-1=0+0+0+1 --
pHqghUme
-1' OR 3+483-483-1=0+0+0+1 --
pHqghUme
-1' OR 3*2<(0+5+483-483) --
pHqghUme
-1' OR 3*2>(0+5+483-483) --
pHqghUme
-1' OR 2+569-569-1=0+0+0+1 or 'QPoPQTGY'='
pHqghUme
-1' OR 3+569-569-1=0+0+0+1 or 'QPoPQTGY'='
pHqghUme
-1' OR 3*2<(0+5+569-569) or 'QPoPQTGY'='
pHqghUme
-1' OR 3*2>(0+5+569-569) or 'QPoPQTGY'='
pHqghUme
-1" OR 2+409-409-1=0+0+0+1 --
pHqghUme
-1" OR 3+409-409-1=0+0+0+1 --
pHqghUme
-1" OR 3*2<(0+5+409-409) --
pHqghUme
-1" OR 3*2>(0+5+409-409) --
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
tGNzA8Km'; waitfor delay '0:0:15' --
pHqghUme
-5 OR 412=(SELECT 412 FROM PG_SLEEP(15))--
pHqghUme
-5) OR 672=(SELECT 672 FROM PG_SLEEP(15))--
pHqghUme
-1)) OR 681=(SELECT 681 FROM PG_SLEEP(15))--
pHqghUme
eaG4mRnG' OR 217=(SELECT 217 FROM PG_SLEEP(15))--
pHqghUme
lSIav8Va') OR 85=(SELECT 85 FROM PG_SLEEP(15))--
pHqghUme
gt6Ga4rk')) OR 618=(SELECT 618 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)||'