1

i want to remove github repo from my drone ci v0.3 ( standalone ), but i have a problem with authorizing with github. In 0.3 version you could did with ./drone delete github.com/foo/bar, but i get such error

./drone delete github.com/foo/bar Unauthorized

The problem is that 0.3 version is outdated and documentation is locked http://readme.drone.io/api/authentication/

If you know how configure authentication please help. PS - board upgrade to the latest version of the right, but impossible now.

Brad Rydzewski
  • 2,523
  • 14
  • 18
dezzinto
  • 397
  • 1
  • 2
  • 10

3 Answers3

2

For an updated answer, using 1.2.1 I was able to remove repos from my drone list by using the API to delete from the db.

curl -X DELETE "https://drone.website.com/api/repos/owner/repo?remove=true" -H "Authorization: Bearer token"
iamface
  • 673
  • 1
  • 9
  • 27
0

Fixed with editing db. Other methods does't work :(

dezzinto
  • 397
  • 1
  • 2
  • 10
  • 1
    Answers are meant for full solutions. Could you therefore describe what exactly you had to do to solve your problem? This might help future readers who run into the same problem. – honk Dec 12 '15 at 09:30
0

The drone command line utility was created for use with drone 0.4 and above. It is therefore not possible to use command line utility with drone 0.3 alpha

Brad Rydzewski
  • 2,523
  • 14
  • 18