Refactor empty json response for delete methods