Anyone know how to delete repositories from bitbucket by cURL ?
At the moment I've made script to create remote repository on bitbucket by curl
#!/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<repo_list.txt
but now I cant delete that repositories from bitbucket by curl
Im am using
curl -X DELETE --user user:password https://api.bitbucket.org/1.0/repositories/ --data name=$line --data is_private=true --data owner=OWNER
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}
https://bitbucket.org/zhemao/bitbucket-cli delete repositories only from user account but dont have option to delete repository owned by other owner which I belongs to.
Any ideas ?