RESTful Alternatives to DELETE Request Body

Despite some recommendations not to use the message body for DELETE requests, this approach may be appropriate in certain use cases. This is the approach we ended up using after evaluating the other options mentioned in the question/answers, and after collaborating with consumers of the service.

While the use of the message body is not ideal, none of the other options were perfectly fitting either. The request body DELETE allowed us to easily and clearly add semantics around additional data/metadata that was needed to accompany the DELETE operation.

I’d still be open to other thoughts and discussions, but wanted to close the loop on this question. I appreciate everyone’s thoughts and discussions on this topic!

Leave a Comment