I am in the process of deleting an account on my source tree, but whenever I attempt to delete in:

Tools > Options > Authentication

SourceTree doesn't delete the saved password. I need to delete the password as it has the incorrect details associated with the account.

OS: Windows 10

Version: 2.1.2.5

I think Atlassian is trying to prevent the same sort of thing as trying to delete a branch that has unmerged commits, in that if the account/password is actively used in any of your repositories, the UI won't let you delete it as that could permanently remove access if the password was forgotten.

So how do you do a --force delete?

  1. First close any open instances of SourceTree

  2. As Pathfinder, pointed out, SourceTree stores some of the passwords using the Windows Credential Manager

  3. Go to Control Panel > User Accounts > Manage Credentials > Windows Credentials

  4. Find any offending passwords and remove them

    Windows Credential Manager

  5. SourceTree also stores passwords in you Local App Data Folder in a passwd file:

  6. Open Windows Explorer (<kbd>āŠž Win</kbd>+<kbd>E</kbd>)

  7. In the address bar, go to %LocalAppData%/Atlassian

  8. Open the Source Tree Folder and delete the only account+pasword rows or if required delete the all accounts or delete the complete passwd file

    Delete Local File

  9. Open Source Tree and Perform a Fetch before doing anything else.

Further Reading: