title: Required request body is missing - HTTP Delete
body: <p>I'm trying to pass in data that can be used by a DELETE request for my endpoint. I've been able to specify and call the endpoint, but I'm not able to pass in the body for said endpoint. Hence the error. My code consists of the following:</p>
  <pre><code>$scope.handleDelete = function (data) {
          angular.forEach(data, function (value, key) {
              var deleteRequest = [];
  
              var deleteUrl = &quot;api/student/&quot; + value + &quot;/work&quot;;
              let body = {
                  &quot;Id&quot;: key
              }
              deleteRequest.push(body);
  
              $log.info(JSON.stringify(deleteRequest))
  
              $http.delete(deleteUrl, {data: deleteRequest});
          });
      }
  </code></pre>
  <p>My output for the delete request is the following:</p>
  <pre><code>[{&quot;id&quot;:&quot;3&quot;}]
  </code></pre>
  <p>I'm unsure what I am missing regarding the $http.delete in order to get this function to work. Any help would be appreciate, thanks.</p>