Main Tutorials

cURL – DELETE request examples

To send a DELETE request, uses cURL -X DELETE

Terminal

$ curl -X DELETE http://localhost:8080/user/100

The above example will delete a user where user id is 100.

References

  1. cURL official website
  2. cURL – POST request examples

About Author

author image
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

Subscribe
Notify of
2 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
manzar aqeel
3 years ago

How to delete multiple user id like user id 100, 101,102

henry
1 year ago
Reply to  manzar aqeel

a. client side loop
b. query parameter with ids
c. (not supported by all) request body with ids
d. (soft delete) put