title: Sending body in HttpClient delete method (Angular 5)
body: <p>I'm migrating Http to HttpClient in an Angular 5 application and everything went fine until I got to this method of one of the services:</p>
  
  <pre><code>deleteMultipleObjects(userId: number, officeId : number, objectsData : any) {
    const url = `${APP_URL}/delete-objects/${userId}/${officeId}`;
  
    let headers = new Headers({ 'Content-Type': 'application/json' });
  
    this.appOptionsService.log("Deleting multiple objects.....", url, objectsData);
  
    return this.http
      .delete(url, { headers : headers, body : objectsData } )
      .map(this.extractData)
      .catch(this.handleError);
  }
  </code></pre>
  
  <p>As you can see, I pass an object <code>objectsData</code> in the body of the delete call that basically has this structure:</p>
  
  <pre><code>{
    objectIds: [id1, id2, id3, ...]
  }
  </code></pre>
  
  <p>I see that the <code>delete</code> method in the <code>HttpClient</code> doesn't allow to include a body, so how could I send the array of object ids to delete with the call? I have a lot of delete calls that are the same as this one, so I'll have to change a lot of things in the code to adapt it...</p>
  
  <p>Thanks!</p>