Source Tree is Crash on startup, How to remove the repositiories?
Asked by Chris Wong:

I try to reinstall source tree, restart, delete app data local, I kinda know why it happen its because my Remote repositories is no more working However i cannot find a way to delete this "chriswong" GitLab EE AC

I cannot delete it because once i open sourcetree is crash. is their anyway to delete that? thank you so much![Screenshot_4.png](/t5/image/serverpage/image-id/111853iF83C19852B2A27A5/image-dimensions/483x350?v=v2 "Screenshot_4.png")


Answers:
author: Mikael Sandberg
body: Hi [@Chris Wong](/t5/user/viewprofilepage/user-id/4100635),

Welcome to Atlassian Community!

You can remove any Sourcetree preferences (like settings, bookmarks, stored accounts etc) by deleting C:\\Users\\\<username\>\\AppData\\Local\\Atlassian\\SourceTree\\ and C:\\Users\\\<*username* \>\\AppData\\Local\\Atlassian\\SourceTree.exe\<*random_string* \>\\. If you are on Mac the directories you need to delete is \~/Library/Application Support/SourceTree/ and then you need to run this command: **`defaults delete com.torusknot.SourceTreeNotMAS`**

Once you removed the preferences you can remove the install directories by going to C:\\Users\\\<UserName\>\\AppData\\Local and remove sourcetree and sourcetree-settings directories.

comments: author: Chris Wong
body: I did that already but have the same issue, the repositories still there, I am using PC


author: Chris Wong
body: > Faulting application name: SourceTree.exe, version: 3.3.9.3870, time stamp: 0x5ec58c28  
> Faulting module name: KERNELBASE.dll, version: 10.0.18362.1049, time stamp: 0x1b835a75  
> Exception code: 0xe0434352  
> Fault offset: 0x0000000000043b29  
> Faulting process ID: 0x2344  
> Faulting application start time: 0x01d693a3a750e620  
> Faulting application path: C:\\Users\\Chris Wong\\AppData\\Local\\SourceTree\\app-3.3.9\\SourceTree.exe  
> Faulting module path: C:\\WINDOWS\\System32\\KERNELBASE.dll  
> Report ID: 12299f89-442a-49b6-86c3-bd5b79f3cca8  
> Faulting package full name:  
> Faulting package-relative application ID:


author: Chris Wong
body: > Application: SourceTree.exe  
> Framework Version: v4.0.30319  
> Description: The process was terminated due to an unhandled exception.  
> Exception Info: SourceTree.Exceptions.RestApiException  
> at Sourcetree.Host.GitLab.AbstractGitLabHost+\<ListGroupingsForUser\>d__47.MoveNext()  
> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)  
> at SourceTree.ViewModel.Hosted.HostedProjectsViewModel+\<RefreshGroupingList\>d__95.MoveNext()  
> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)  
> at SourceTree.ViewModel.Hosted.HostedProjectsViewModel+\<\<-ctor\>b__47_8\>d.MoveNext()  
> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)  
> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)  
> at System.Windows.Threading.DispatcherOperation.InvokeImpl()  
> at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)  
> at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)  
> at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)  
> at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)  
> at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)  
> at System.Windows.Threading.DispatcherOperation.Invoke()  
> at System.Windows.Threading.Dispatcher.ProcessQueue()  
> at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)  
> at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)  
> at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)  
> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)  
> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)  
> at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)  
> at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)  
> at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)  
> at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)  
> at System.Windows.Application.RunDispatcher(System.Object)  
> at System.Windows.Application.RunInternal(System.Windows.Window)  
> at SourceTree.App.Main()


author: Chris Wong
body: Application: SourceTree.exe  
Framework Version: v4.0.30319  
Description: The process was terminated due to an unhandled exception.  
Exception Info: SourceTree.Exceptions.RestApiException  
at Sourcetree.Host.GitLab.AbstractGitLabHost+\<ListGroupingsForUser\>d__47.MoveNext()  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)  
at SourceTree.ViewModel.Hosted.HostedProjectsViewModel+\<RefreshGroupingList\>d__95.MoveNext()  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)  
at SourceTree.ViewModel.Hosted.HostedProjectsViewModel+\<\<-ctor\>b__47_8\>d.MoveNext()  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)  
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)  
at System.Windows.Threading.DispatcherOperation.InvokeImpl()  
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)  
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)  
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)  
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)  
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)  
at System.Windows.Threading.DispatcherOperation.Invoke()  
at System.Windows.Threading.Dispatcher.ProcessQueue()  
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)  
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)  
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)  
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)  
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)  
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)  
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)  
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)  
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)  
at System.Windows.Application.RunDispatcher(System.Object)  
at System.Windows.Application.RunInternal(System.Windows.Window)  
at SourceTree.App.Main()