From your question, it looks like you are using @RequestBody for your @PostMapping but on your @DeleteMapping you are using @RequestParam.
It looksAlso you are invoking your DELETE api with request body instead of a url parameter. From your request info, I see:
DELETE /api/v1/wud/receiver?action=something HTTP/1.1 YouBut you have to invoke your delete API like this:
DELETE /api/v1/wud/receiver?action=something&name=something Here ---------^^^^^ With curl you can use:
curl -X DELETE '{{url}}/api/v1/wud/receiver?action=something&name=something' On the other hand, if name param is not mandatory, then you can use:
@RequestParam(value = "name", required = false) String name