def METHOD_NAME(keyring: LegacyKeyring) -> None:
    removed = 0
    for index in range(MAX_KEYS + 1):
        try:
            keyring.delete_password(DEFAULT_SERVICE, get_private_key_user(DEFAULT_USER, index))
            removed += 1
        except Exception:
            pass
    print(f"{removed} key{'s' if removed != 1 else ''} removed.")