How can I delete a keychain password for github and vscode?

Solution 1:

Solved the problem by doing these commands in terminal :

 git credential-osxkeychain erase ⏎
 host=github.com  ⏎
 protocol=https   ⏎
 ⏎
 ⏎

Note

simply is the return key .