title: Google Cloud Storage JSON API: batch delete returns Unknown Error (500 Internal Server Error)
body: <p>I'm trying to delete several object in batch using the documentation: <a href="https://cloud.google.com/storage/docs/json_api/v1/how-tos/batch" rel="nofollow" title="Sending Batch Requests">Sending Batch Requests</a>. Here is my request (<code>&lt;my_api_key&gt;</code> is the valid API key and other methods like list contents of a bucket work good, <code>&lt;my_bucket&gt;</code> is the placeholder for the exact bucket name):</p>
  
  <pre><code>POST /batch?key=&lt;my_api_key&gt;
  host: www.googleapis.com
  content-type:multipart/mixed; boundary="===============7330845974216740156=="
  
  --===============7330845974216740156==
  Content-Type: application/http 
  Content-Transfer-Encoding:binary
  
  DELETE /storage/v1/b/&lt;my_bucket&gt;/o/James-Hetfield-happy.jpg
  --===============7330845974216740156==
  </code></pre>
  
  <p>Here is the response:</p>
  
  <pre><code>access-control-allow-credentials:true
  access-control-allow-origin:chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm
  access-control-expose-headers:Cache-Control,Content-Encoding,Content-Length,Content-Type,Date,Expires,Pragma,Server,Vary
  alternate-protocol:443:quic,p=0.02
  cache-control:no-cache, no-store, max-age=0, must-revalidate
  content-encoding:gzip
  content-length:33
  content-type:text/html; charset=UTF-8
  date:Tue, 10 Feb 2015 16:55:14 GMT
  expires:Fri, 01 Jan 1990 00:00:00 GMT
  pragma:no-cache
  server:GSE
  status:500 Internal Server Error
  vary:Origin
  vary:X-Origin
  version:HTTP/1.1
  x-content-type-options:nosniff
  x-frame-options:SAMEORIGIN
  x-xss-protection:1; mode=block
  
  Unknown Error
  </code></pre>
  
  <p>When I send the following body:</p>
  
  <pre><code>--===============7330845974216740156==
  DELETE /storage/v1/b/&lt;my_bucket&gt;/o/James-Hetfield-happy.jpg
  --===============7330845974216740156==
  </code></pre>
  
  <p>I got 200 OK response with the body <code>--batch_rTJhZwR1jHM_AAh2WtGp7ik--</code> but the file still exists.</p>
  
  <p>Please advise proper format for sending batch delete requests using Google Cloud Storage JSON API.</p>