HTTP DELETE Method

The 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 following example demonstrates a request to delete the order #123 from the server:

DELETE /api/v1/order/?id=123 HTTP/1.1
Authorization: Bearer mt0dgHmLJMVQhvjpNXDyA83vA_PxH23Y
Accept: application/json
Host: myserver.com
And the server response:

HTTP/1.1 200 OK
Content-Length: 0

To read more about HTTP DELETE method please check RFC2616.