title: Error delete image from Docker Registry using API v2
body: <p>I'm trying to remove images from Docker Registry using API v2 folloving сommand:</p>
  
  <pre><code>curl -k -v -u 'docker:sdf' -X DELETE https://localhost:5000/v2/bkf/ebbg/manifests/1
  </code></pre>
  
  <p>But I get next error:</p>
  
  <pre><code>&gt; DELETE /v2/bkf/ebbg/manifests/1 HTTP/1.1
  &gt; Authorization: Basic ZG9ja2VyOkRrZmxidmJoMjAx==
  &gt; User-Agent: curl/7.35.0
  &gt; Host: localhost:5000
  &gt; Accept: */*
  &gt;
  &lt; HTTP/1.1 400 Bad Request
  &lt; Content-Type: application/json; charset=utf-8
  &lt; Docker-Distribution-Api-Version: registry/2.0
  &lt; X-Content-Type-Options: nosniff
  &lt; Date: Mon, 14 Mar 2016 07:56:13 GMT
  &lt; Content-Length: 98
  &lt;
  {"errors":[{"code":"DIGEST_INVALID","message":"provided digest did not match uploaded content"}]}
  </code></pre>
  
  <p>Command:</p>
  
  <pre><code>curl -u 'docker:sdf' -X GET https://localhost:5000/v2/_catalog
  </code></pre>
  
  <p>show</p>
  
  <pre><code>{"repositories":["bkf/ebbg"]}
  </code></pre>
  
  <p>comand</p>
  
  <pre><code>curl -k -u 'docker:sdf' -X GET https://localhost:5000/v2/bkf/ebbg/tags/list
  </code></pre>
  
  <p>show</p>
  
  <pre><code>{"name":"bkf/ebbg","tags":["32","1","latest","12","33","34"]}
  </code></pre>
  
  <p>In what may be a problem or where did I go wrong?</p>