title: Delete bitbucket repository by cURL
body: <p>Anyone know how to delete repositories from bitbucket by cURL  ?</p>
  
  <p>At the moment I've made script to create  remote repository on bitbucket by curl</p>
  
  <pre><code>#!/bin/bash
  while read line
  do
  curl --user user:password https://api.bitbucket.org/1.0/repositories/ --data name=$line --data is_private=true --data owner=OWNER
  done&lt;repo_list.txt
  </code></pre>
  
  <p>but now I cant delete that repositories from bitbucket by curl</p>
  
  <p>Im am using </p>
  
  <pre><code>curl -X DELETE --user user:password https://api.bitbucket.org/1.0/repositories/ --data name=$line --data is_private=true --data owner=OWNER
  </code></pre>
  
  <p>and have error {"error": {"message": "'username'", "detail": " File \"/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/piston/resource.py\", line 208, in call\n}</p>
  
  <p><a href="https://bitbucket.org/zhemao/bitbucket-cli" rel="nofollow">https://bitbucket.org/zhemao/bitbucket-cli</a> delete repositories only from user account but dont have option to delete repository owned by other owner which I belongs to.</p>
  
  <p>Any ideas ?</p>