'How can I delete a keychain password for github and vscode? || Delete Keychain with Terminal

What I am facing the way worked previously deleting a keychain password from UI is not working anymore, simply it doesn't delete or trigger any error messages. STRANGE !!

Now I want to delete it using terminal. How can i do that?enter image description here



Solution 1:[1]

do these commands in terminal :

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

? this is the return key .

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jashan PJ