How do I fully remove SourceTree so that I can do a "fresh" install?
Asked by lat9:

I messed up my GitHub repository and just want to start over. I'd had SourceTree 1.9 installed on Win 8.1, removed it via add/remove programs, deleted by messed up repository, removed the Atlassian program data.

Downloaded SourceTree 2.1.25 and, upon install, it still shows that messed up repository. I also went through the registry, removing all references to either Atlassian or SourceTree.

What additional settings do I need to remove to start over with a fresh installation?


Answers:
author: Ana Retamal
body: Hi Cindy! Can you try the following steps:

1. [Wipe SourceTree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html).
2. Uninstall SourceTree (if it shows on the App\&Features list)
3. Backup then delete the directory below before proceeding with next step
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local and delete *SourceTree* \& *SourceTree-Settings* folder
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian and delete all SourceTree Files/Folder.
4. [Download SourceTree](https://www.sourcetreeapp.com/) and install it.

Let us know if this helped!

Cheers,

Ana

comments: author: lat9
body: Thanks, Ana, that did the trick!


author: Ana Retamal
body: Glad to hear that, Cindy!


author: igniz87
body: thanks, it's worked for me too


author: Ana Retamal
body: :D


author: tystahnke
body: This helped me! I had issues connecting with any of my Bitbucket accounts from Sourcetree when trying to pull / fetch / clone. Looked at different forums for hours, but couldn't get it to work. Decided I would just reinstall source tree from scratch, which didn't work until I actually followed the above steps and cleared the source tree preferences. Thanks a lot!


author: rorisk
body: Why after uninstalling you keep over 300MB on my HDD??

It is not really polite way how app should behave!


author: Ke Wang
body: I encountered the same problem but my sourcetree is installed on college own computer and my account is a network account. I can't find any of the files you suggested need deleting. Can anyone help me find all those files on a networked account? Or maybe is there another way to clean uninstall?


author: Egi
body: Thanks Ana, this helped me a lot :-)


author: Ana Retamal
body: So glad to hear that, [@Egi](/t5/user/viewprofilepage/user-id/3521257)  
Thanks for letting us know :)


author: Soumaya
body: That not work for me :(


author: Niraj Kishore
body: Thanks Ana,  

It helped me.  

Again when i reinstalled, system was showing already logged in with Account.  
I think there is some files keeping information of logged in user after uninstall.  

Thanks Again for your post.


author: Robert Grady
body: I'm having this problem too. It would be great if remove sourcetree did this automatically (as it should).


author: Niraj Kishore
body: You are right [@Robert Grady](/t5/user/viewprofilepage/user-id/3518127)


author: Dan Adamson
body: Is there a way to completely uninstall? This is poor.

I tried removing those folders but it still kept my accounts. Any way to really remove them? I have weird phantom accounts the latest version of sourcetree is using as default 'generic accounts' every time I restart it. Are they in the registry? Thanks!


author: Robert Grady
body: There's a known bug in Sourcetree regarding this, and Atlassian is not planning to fix it.

Even if you delete all accounts, the problem does not go away.

I have had luck by going to the repo settings (the gear icon), then under 'advanced', uncheck 'Use global user settings.'


author: Pm Verma
body: Not helping at all!!!!


author: Pramod Raj
body: [@Ana Retamal](/t5/user/viewprofilepage/user-id/1067288)

Above mentioned solution was not working at all. I have deleted all the mentioned files, but still facing the issue. Not able to do the fresh install (Using 3.3.8 version).

Can you please help ? Its very urgent.

Thanks


author: Pramod Raj
body: 1. Uninstall SourceTree using Windows UnInstall program
2. Backup then delete the directories below before proceeding with next step:
   * Navigate to *C:\\Users\\\<UserName\>\\AppData\\Local* and delete *SourceTree* folder (if any)
   * Navigate to *C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian* and delete all *SourceTree* folders.
   * Navigate to *C:\\Users\\\<UserName\>\\AppData\\Roaming\\Atlassian*and delete *SourceTree\** folder
3. [Download SourceTree](https://www.sourcetreeapp.com/) and install it

This info got worked, issue got resolved.


author: ??
body: This really helps, I just miss the files in Roaming.


author: Brian_Wu
body: As of 03/26/2020 - To COMPLETELY uninstall \& reinstall SourceTree v3.3.8 on Windows 10:

1. Uninstall SourceTree using Windows UnInstall program
2. Backup then delete the directories below before proceeding with next step:
   * Navigate to *C:\\Users\\\<UserName\>\\AppData\\Local* and delete *SourceTree* folder (if any)
   * Navigate to *C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian* and delete all *SourceTree* folders.
   * Navigate to *C:\\Users\\\<UserName\>\\AppData\\Roaming\\Atlassian*and delete *SourceTree\** folder
3. [Download SourceTree](https://www.sourcetreeapp.com/) and install it

comments: author: LeandroCEO
body: Thanks! [@Brian_Wu](/t5/user/viewprofilepage/user-id/3830626)


author: Philip Hotte
body: Thanks - I had the same problem and clearing the AppData\\Roaming files solved it.


author: DylanAlloy
body: Why don't you alert the user of any of this?  

why is installing completely opaque and shows nothing UX-related to the user?

UININSTALLING shows nothing to the user!

Why do I have to delete a AppData/Local folder to actually reset the settings YOUR guys' code passively breaks while minimized?

How can this mature software backed by Atlassian be so horrendous?

Do you realize how simple it is to give this BASIC info to your users so they don't spend time chasing their tails?  

Do your jobs.


author: Mukesh Kumar
body: Hi Users,

For complete uninstallation and fresh install, please follow these steps:

* Uninstall Sourcetree using the Windows Uninstall program.
* Delete the folders/files below before proceeding to the next step:

<!-- -->

* Navigate to **C:\\Users\\\<UserName\>\\AppData\\Local** and delete all **Sourcetree** folders and files (if any)
* Navigate to **C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian** and delete all **Sourcetree** folders and files (if any)
* Navigate to **C:\\Users\\\<UserName\>\\AppData\\Local\\SourceTree-Settings** and delete all **Sourcetree** folders and files (if any)
* Navigate to **C:\\Users\\\<UserName\>\\AppData\\Roaming\\Atlassian** and delete all **Sourcetree** folders and files (if any)
* [Download Sourcetree for Windows](https://www.sourcetreeapp.com/) and install it.