0

I am able to create a repository like this

curl -u useraA:token http://mygit/api/v3/user/repos -d '{"name":"foo"}'

I am trying to delete the repo but I can't.

I have tried

curl -XDELETE -u userA:token http://mygit/api/v3/user/repos/userA/foo

but I keep getting a 404 Not Found.

Is there something else I should be doing?

NinjaGaiden
  • 3,046
  • 6
  • 28
  • 49
  • Possible duplicate of [How to delete a GitHub repo using the API](https://stackoverflow.com/questions/19319516/how-to-delete-a-github-repo-using-the-api) – Ahmet Zeybek Jun 15 '18 at 02:04
  • yes, I followed that. I get a bad credentials. I goto the gui and generate a token which has FULL privledges. For whatever reason I keep getting Bad credentials. In addition, I tried it with passing -H 'Authorization: xxxxxx' (where xxxx is the token hash) – NinjaGaiden Jun 15 '18 at 02:18
  • @NinjaGaiden did you try only with `-H 'Authorization: xxxxxx'` (without `-u user:token` used at the same time)? – VonC Jun 15 '18 at 05:31
  • yes, I tried that also. Same. – NinjaGaiden Jun 15 '18 at 12:34

0 Answers0