[Python] How do I delete a password set using Python's keyring library?

Discussão em 'Python' iniciado por Stack, Maio 22, 2025.

  1. Stack

    Stack Membro Participativo

    I used the keyring library in Python to store a password needed to logon to an external service.

    import keyring

    keyring.set_password("service_name", "username", "my_password")
    password = keyring.get_password("service_name", "my_username")


    I no longer need that password saved and would like to delete it. Is there a function to delete credentials set with the keyring library?

    Continue reading...

Compartilhe esta Página