DELETE Method
In this lesson, we will learn about the HTTP Delete method.
We'll cover the following
What is the DELETE method?
The HTTP
DELETE
method deletes the specified resource on the server.
DELETE
is idempotent, which means that an outcome will remain the same even if it’s called several times successively with the same request data.
Let’s make a DELETE
request for the given URL
.
curl -iX DELETE https://reqres.in/api/users/2
Here, we are trying to delete the user ( id = 2).
Get hands-on with 1200+ tech skills courses.