Clearing AnkhSVN Saved UserName/Password/Authentication Data
Recently we started using Subversion in our office. We are using VisualSVN Server because it has a nice administration interface, where we can manage user and their rights.
TortoiseSVN is an awesome subversion client, but to have subversion features integrated to our Visual Studio IDE we found two useful plugins VisualSVN and AnkhSVN.
Since AnkhSVN is free and it stable (at least for me) we preferred using it.
The Problem
When you open a project from Subversion repository AnkhSVN will prompt you to authenticate (If you have turned on security in your subversion repository). Once you enter your username and password and check the save password it will not prompt again.
Now what if you change your password? I googled about this for two days but didn’t find any solution. Luckily today my boss found this.
The Solution
The authentication data is saved to the following directories
%APPDATA%\Subversion\auth\svn.ssl.server
%APPDATA%\Subversion\auth\svn.simple
Deleting all the files inside these folders will solve the problem. After deleting these files AnkhSVN will prompt you for username and password once again.
I am currently writing a small Visual Studio Add-in that will help you clear these information from within Visual Studio.
Possible Related Posts:
- C# Obtain List Of SQL Server Instances
- ASP.NET WebApplication Fails To Load In Visual Studio 2008 After Upgrading In Visual Studio 2010
- Windows 2008 & Visual Studio Web Setup: The installer was interrupted before ApplicationName could be installed
- MSBuild Context Menu: Build .NET Project/Solution From Explorer
- Trying Out Windows 7 Beta


I am one of the AnkhSVN developers. We are planning to add this feature for a while. I’d like to let you know that we’ve almost started developing this feature in AnkhSVN itself
I just added a UserVoice item to track progress and/or gather some votes for this.
An add-in will probably not be able to clear the in-memory cache, and we also would like to add value by clearing per repository.
[ Reply ]
Sander Rijken
15 Jan 09 at 4:27 pm
That is a really important feature. Thank you for creating a UserVoice item for it. I hope we get that feature in the next release.
[ Reply ]
Zuhaib
16 Jan 09 at 2:00 am
For the record: this is available in daily builds by going to Tools – Options – Source Control – Subversion Environment
[ Reply ]
Sander Rijken
3 Feb 09 at 11:41 am
Thanks! I only had to wrestle with it for a few hours. Love Ankhsvn, though I wish they make it easier for some of us d-bags about how to go from no source control to Ankhsvn. I’m still not sure how many of SVN server + Apache + Tortoise + AnkhSVN were actually necessary to get my code into source control. And somewhere in the process I changed the pwd :-O
Props for this post and AnkhSVN.
[ Reply ]
Armand
26 Sep 09 at 11:55 am
@Armand
You dont have to do this the hard way anymore. Ankhsvn now has options to clear/change password built in. Under Tools–>Options
And Tortoise SVN already had this option. Just goto settings and then Saved Data and then hit clear
[ Reply ]
Zuhaib
3 Oct 09 at 5:01 am