title: How to send a DELETE HTTP request with node.js?
body: <p>I need to delete an audio file from a server, here is what I tried:</p>
  <pre><code>var payload = JSON.stringify(recordingID);
  
  const options = {
      hostname: 'xxxxxxxxx',
      port: 443,
      path: &quot;v3.0/recordings/&quot; + recordingID,
      method: 'DELETE',
      headers: {
          'Content-Type': 'application/json',
          'X-Auth-Token': authenticationToken
      }
  };
  
  const req = https.request(options, res =&gt; {
      console.log(res);
      console.log(`statusCode: ${res.statusCode}`);
  
      res.on('data', d =&gt; {
          process.stdout.write(d);
      });
  });
  req.write(payload);
  req.end();
  </code></pre>
  <p>But I keep on getting the following error in the console:</p>
  <p><strong>408 Request Time-out
  Your browser didn't send a complete request in time.</strong></p>
  <p>What should I modify to get a successful response to the request?</p>