title: How to use http delete () in Angular 6
body: <h2>myService.ts</h2>
  
  <pre><code>  import { Injectable } from '@angular/core';
    import { Http, Response,Headers,RequestOptions } from '@angular/http';
    import { Observable } from 'rxjs';
    import 'rxjs/Rx';
    import{Router} from'@angular/router';
    import 'rxjs/add/operator/map';
    @Injectable()
    export class ManageJobDeleteService{
      constructor(private http: Http,private router:Router){};
      DeleteRequestToAPI(post_jobs_id:string){
         let body = JSON.stringify({post_jobs_id:post_jobs_id});
         let headers = new Headers({ 'Content-Type': 'application/json'});
         let options = new RequestOptions({ headers: headers });
          console.log(body);
          console.log(options);
        return this.http.delete('http://127.0.0.1:8000/api/employer/post_jobs/',body,options)//HERE I AM GETTING ERROR
        .map(this.extractData)
        .catch(this.handleError);
      }
     private extractData(res: Response){
        let body = res.json();
        console.log(body);
        return body || [];   
      }
      private handleError (error: any) {
        console.error(error);
        return Observable.throw(error.json().error || 'Server error');
      }
    }
  </code></pre>
  
  <p>ERROR: </p>
  
  <blockquote>
    <p>Expected 1-2 arguments, but got 3.ts(2554).</p>
  </blockquote>
  
  <p>Please tell me  how to pass both body and options using http delete request in Angular 6.</p>