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.
To send a DELETE request, uses cURL -X DELETE
$ curl -X DELETE http://localhost:8080/user/100
The above example will delete a user where user id is 100.
How to delete multiple user id like user id 100, 101,102
a. client side loop
b. query parameter with ids
c. (not supported by all) request body with ids
d. (soft delete) put