title: Axios delete method with a payload
body: <p>Im using axios on my react app to send a delete request, I need to send an id list as payload but it returns "415 Unsupported Media Type".</p>
  
  <p>Here's my code:</p>
  
  <pre><code>const deviceData = ["31234"];
  
  axios.delete(url, { data: deviceData }).then(res =&gt; {
    if (res.status === 200) {
      const pagination = { ...this.state.pagination };
      this.setState({
        loading: false,
        data: res.data.data.devices,
        pagination
      });
    }
  });
  
  </code></pre>