Programmatically remove github account from account settings in Visual Studio 2022 within an VS extension

iu_110978 0 Reputation points
2023-02-21T16:06:34.45+00:00

In Visual Studio 2022, I can add a GitHub account, via File --> Account Settings

User's image

I have a Visual Studio extension where I would like to be able to check if any GitHub account was defined and if so remove that account. Basically to do the same action that is done when user clicks the 'remove` next to the account name.

Any help is appreciated

Thanks

Developer technologies | Visual Studio | Extensions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.