Tim Hastings - NonHostile (because there's no need)

Weblog and collection of geeky articles.

  Home :: Who? :: Contact :: Links :: Subscribe subscribe
Now Witness the Power of This Fully Armed and Operational Debian NSLU2Privacy Risk With Internet ExplorerMore Industrial Revelations with Mark Williams - God Be Praised!!

The need arose today to issue a bulk set of HTTP DELETE operations against our applicaiton's REST-based API.

It took me a little digging to find out how to use curl to do this, so here it is:

    curl -X DELETE http://localhost/example/    

Loving curl!

It is quickly becoming one of my favourite command line tools.

527 comments, Linux, Friday, June 25, 2010 11:34

Timeline Navigation for Linux posts
HTTP Posting some JSON using curl (made 11 weeks later)
Sending HTTP DELETE with curl (this post, made Friday, June 25, 2010 11:34)
How to Install Node.js on Ubuntu (made 4 weeks earlier)


Post a Comment
Name:  Home page and email address are optional.
  Email addresses will not be displayed or spammed!
Remember these details
Home Page:
Comments cannot contain HTML, URLs will be formatted into hyperlinks.
I reserve the right to remove any comments for any reason.