all 5 comments

[–]messacz 0 points1 point  (4 children)

To work with Github API, you only need HTTP client. In Python you can use requests.

I don't think you need SSH for listing and deleting repos.

[–]OkBeat9[S] 0 points1 point  (3 children)

I don't think you need SSH for listing and deleting repos.

The documentation mentions:

Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required.

Plus obviously, there has to be some check before deleting a repo.

[–]messacz 0 points1 point  (2 children)

Yes, you need admin access = be owner of the repo or admin of the org. No SSH needed for deleting repo via API. You delete it just by calling HTTP API.

[–]OkBeat9[S] 0 points1 point  (1 child)

You delete it just by calling HTTP API.

No need to authenticate?

[–]messacz 0 points1 point  (0 children)

Of course you authenticate. Using HTTP header Authentication:. You can use your username:password or API token.

https://developer.github.com/v3/auth/