Use HTTP DELETE Method

Share this video with your friends

Send Tweet

The HTTP DELETE method is used to request that the server perform a delete operation on the specified resource with resource specific semantics. Behind the scenes, the delete operation may result in a removal of a file from the filesystem, or an update to the database to reflect the change. Because multiple requests to delete the same resource has the same effect as a single one, the DELETE method is considered ‘idempotent’, but not considered safe.

JP Erasmus
JP Erasmus
~ 5 years ago

Would a DELETE action only be considered fully idempotent if it returns a 204 status code? If it would return a 202 or 200 with the body of the deleted item, I would imagine that won't be reproducible.