title: remove docker repository on remote docker registry
body: <h2>Given a docker registry managing multiple docker repositories, how do I delete one of the repositores?</h2>
  <p>Given docker repositories <code>repo1</code> and <code>repo2</code>.</p>
  <pre><code>$ curl -X GET localhost:5000/v2/_catalog
  {&quot;repositories&quot;:[&quot;repo1&quot;, &quot;repo2&quot;]}
  </code></pre>
  <p>I want to remove repository <code>repo1</code> so <code>_catalog</code> does not list <code>repo1</code>, like</p>
  <pre><code>$ curl -X GET localhost:5000/v2/_catalog
  {&quot;repositories&quot;:[&quot;repo2&quot;]}
  </code></pre>
  <p>Currently, repository <code>repo1</code> only has the default <code>&quot;latest&quot;</code> image tag</p>
  <pre><code>$ curl -X GET localhost:5000/v2/repo1/tags/list
  {&quot;name&quot;:&quot;repo1&quot;,&quot;tags&quot;:[&quot;latest&quot;]}
  </code></pre>
  <p>(Maybe that affects being able to delete <code>repo1</code>?)</p>
  <br/>
  <hr />
  <h3>I have tried...</h3>
  <p>The following commands returned <code>404 page not found</code>:</p>
  <pre><code>$ curl -X DELETE localhost:5000/v1/repositories/repo1
  $ curl -X DELETE localhost:5000/v2/repositories/repo1
  $ curl -X DELETE localhost:5000/v2/repo1
  </code></pre>
  <p>And the following returned <code>{&quot;errors&quot;:[{&quot;code&quot;:&quot;UNSUPPORTED&quot;,&quot;message&quot;:&quot;The operation is unsupported.&quot;}]}</code></p>
  <pre><code>$ curl -X DELETE localhost:5000/v2/repo1/manifests/latest
  </code></pre>
  <h3>Using versions</h3>
  <p>The remote docker-registry is <code>registry/2.0</code></p>
  <pre><code>curl -vX GET localhost:5000/v2/
  &lt; HTTP/1.1 200 OK
  ...
  &lt; Docker-Distribution-Api-Version: registry/2.0
  ...
  </code></pre>
  <p>and</p>
  <pre><code>$ /bin/registry github.com/docker/distribution v2.4.1
  </code></pre>