curlcouchbasewindows-serverhttp-deletehttp-method

Windows server how to send a HTTP delete method


I am working with Couchbase, and I want to delete a bucket.

According to the official page I should do this:

To delete buckets, use the DELETE /pools/default/buckets/[bucket-name] HTTP method and URI.

I am working on Windows server 2012 and this is what I did:

C:\Users\Administrator>curl -X DELETE "/pools/default/buckets/gamesim-sample"
curl: (3) <url> malformed

and as you see, I got the error shown above.


Solution

  • That's not a URL, have you tried adding http://localhost:port to it?