title: Deleting a video using YouTube API v3 PHP
body: <p>I have the following code to delete a YouTube video using cURL. I'm getting a 401 response/authorization error. I've put in the API key in the url and do I put the access token in the bearer value in <code>CURLOPT_HTTPHEADER</code> area?</p>
  
  <pre><code>$url = "https://www.googleapis.com/youtube/v3/videos?id=VIDEO_ID_HERE&amp;key=KEY_HERE";
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
  curl_setopt($ch,CURLOPT_HTTPHEADER,array('Content-type: application/json','Authorization : Bearer '.$_SESSION['access_token']));
  $result = curl_exec($ch);
  $http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  </code></pre>
  
  <p>Are there any other mistakes I'm making?</p>