The HTTP DELETE method is used to delete a resource from the server. Unlike GET and HEAD requests, the DELETE requests may change the server state.

Sending a message body on a DELETE request might cause some servers to reject the request.
But you still can send data to the server using URL parameters. This is usually an ID of the resource you want to delete.

The DELETE method is defined as idempotent, which means that multiple identical DELETE requests should have the same effect as a single request.

The following example demonstrates sending a DELETE request to the server:

DELETE Request Example Live Request
DELETE /echo/delete/json HTTP/1.1
Authorization: Bearer mt0dgHmLJMVQhvjpNXDyA83vA_PxH23Y
Accept: application/json
Content-Type: application/json
Content-Length: 19

And the server response:

Server Response
HTTP/1.1 200 OK
Content-Length: 19
Content-Type: application/json