If Subversion keeps signing in with an old username or password, clear its saved authentication data in Windows. The exact steps depend on whether you use TortoiseSVN, the Subversion command-line client, or another SVN application. In most cases, removing the cached credentials makes the client prompt you to enter new ones the next time it connects.
This guide explains how to clear SVN credentials in Windows, where Subversion stores its authentication cache, and what to check if the old login keeps appearing. Clearing saved credentials does not delete your repository or working-copy files.
What Does Clearing SVN Credentials Do?
Subversion can remember authentication details so you do not have to enter them on every connection. Depending on your setup, its saved authentication data may include a username, password, server certificate trust information, or other connection credentials. When the client connects again, it may use that saved data automatically.
Clearing the cache removes the stored information. The next time you access a repository, SVN should ask you to authenticate again. You can then enter the correct username and password. If your organization uses single sign-on, a Windows-integrated login, or another credential provider, the client may authenticate without showing a password prompt.
It is useful to distinguish authentication credentials from server certificate information. If you clear certificate trust data, SVN may ask you to review and accept the server certificate again. That is separate from entering a username and password.
Before You Clear the Cache
First identify the SVN client you use. TortoiseSVN has its own settings interface, while command-line SVN typically uses a Subversion configuration folder. Some IDEs and other applications bundle their own SVN client or use a custom configuration directory, so clearing credentials for one client may not affect another.
- Close TortoiseSVN dialogs, terminals, IDEs, and other applications that may be using SVN.
- Make sure you know the correct username and password, or can access your organization’s sign-in method.
- If you want to preserve the current cache, copy the Subversion authentication folder to a safe location before removing anything.
- Do not delete your working copy’s
.svnfolder. It contains working-copy metadata and is not the normal location for saved SVN credentials.
Clear SVN Credentials in TortoiseSVN
If you use TortoiseSVN in File Explorer, its settings provide the simplest way to clear saved authentication data.
- Right-click a folder in File Explorer, or right-click inside your working copy.
- Select TortoiseSVN, then choose Settings.
- In the settings window, select Saved Data.
- Find the Authentication data section and click Clear.
- If TortoiseSVN displays a list of saved authentication items, select the entry or entries you want to remove. If it does not offer a way to select a particular item, clearing authentication data may remove the saved items covered by that option.
- Confirm the action and close the settings window.
Now try the repository operation again, such as updating or checking out a working copy. TortoiseSVN should request credentials if it needs them. Enter the correct login and choose whether to save it when prompted.
The precise labels can vary slightly by TortoiseSVN version. If you cannot find the option, open TortoiseSVN Settings and look for a page or section named Saved Data. You can also consult the help information installed with your version.
Clear the Subversion Authentication Cache Manually
The standard Subversion configuration directory on Windows is usually located at:
%APPDATA%\Subversion\auth
For many Windows accounts, this resolves to a path similar to C:\Users\YourName\AppData\Roaming\Subversion\auth. The folder is inside your Windows user profile, not inside the repository. Subversion may organize saved authentication data into subfolders, with filenames that do not clearly identify the server or username.
To remove the cache manually:
- Close SVN applications that may be using the credentials.
- Open File Explorer and enter
%APPDATA%\Subversion\authin the address bar, then press Enter. - Optionally copy the
authfolder somewhere safe as a backup. - Delete the contents of the
authfolder to clear all authentication data stored in that location. Alternatively, rename the folder, for example toauth-backup, so you can restore it if needed. - Reconnect to your repository and enter the credentials when prompted.
Removing everything from auth can affect more than one repository. It may clear saved logins for multiple servers and remove cached certificate trust decisions. If you only want to reset one repository’s login, prefer a client interface that lets you select individual saved entries. The cache filenames are not always easy to match to a particular server, so avoid deleting random files unless you understand what they contain.
Use PowerShell to Open the Authentication Folder
You can open the usual cache location from PowerShell with:
explorer "$env:APPDATA\Subversion\auth"
After the folder opens, inspect or remove its contents in File Explorer. For a safer reset, rename the folder rather than permanently deleting it. This allows you to restore the previous cache if you remove credentials you still need.
Do not run a broad deletion command unless you have checked the path carefully. A typo in a file-removal command can delete unrelated data. Also note that this method only affects the standard configuration directory; SVN may be using a different location if the client was configured with a custom directory.
Check the Windows Credential Manager
Some Windows SVN setups or related applications may store or retrieve credentials through Windows Credential Manager or another Windows authentication provider. This is not the same as the standard Subversion authentication folder, and not every SVN client uses it.
To check for a relevant saved entry, open the Windows Start menu and search for Credential Manager. Select Windows Credentials and Web Credentials in turn, then look for an entry clearly associated with your SVN server, organization, or SVN application. Remove only an entry you can identify. The next connection may prompt you to sign in again.
If you do not see an SVN-related item, that does not mean the credentials are missing. They may be stored in Subversion’s own cache, managed by TortoiseSVN, or supplied by an integrated sign-in system. Avoid deleting unrelated Windows credentials, since other apps and network services may rely on them.
Clear Credentials for Command-Line SVN
For command-line Subversion, clearing the standard %APPDATA%\Subversion\auth cache is usually the most direct option. After removing the relevant cached data, run your normal SVN command again, for example:
svn update
If authentication is required, SVN should prompt you for credentials. The svn auth command is available in some Subversion versions to display cached authentication information. Its output can help you inspect what is saved, but available options vary by version. Check svn help auth before relying on it for a particular operation.
If you use a custom configuration directory, the standard folder may not be the one in use. Look for SVN commands or scripts that specify --config-dir, and check the settings of your IDE or other client. Clear the cache in the configuration directory that client actually uses.
What to Do If SVN Still Uses the Old Credentials
If the old login is still being used after you clear the cache, check for another source of authentication. These troubleshooting steps can help:
- Check which client is making the connection. TortoiseSVN, an IDE, and command-line SVN may use different settings or cache locations.
- Confirm the correct Windows account. Credentials are commonly stored per Windows user. If you run a tool as another user, it may have a separate cache.
-
Look for a custom configuration directory. A client or script may use a directory other than
%APPDATA%\Subversion. - Check the repository URL. A URL containing a username, or a saved connection profile in another application, may affect which account is used.
- Consider single sign-on. Kerberos, Windows-integrated authentication, or an organization’s authentication tool may sign you in automatically even after the SVN cache is cleared.
- Check the server account itself. If your password changed or your account is locked, clearing the local cache cannot fix the server-side issue. Confirm your login works through your organization’s approved sign-in method.
- Restart the client. Close and reopen the application after clearing the cache to ensure it is not reusing credentials held in memory.
If you are prompted but the new credentials are rejected, confirm that you are connecting to the correct repository URL and using the correct username format. Some servers require a domain-qualified username or a separate account name rather than your email address.
Frequently Asked Questions
Will clearing SVN credentials delete my working copy?
No. Saved authentication data is separate from your working-copy files. Do not delete the working copy or its .svn folder to reset a login.
Will I need to enter my password again?
Usually, yes. The next connection should prompt for credentials if the server requires them. You may be asked whether to save the new credentials.
Can I clear credentials for just one SVN server?
Possibly, depending on your client and version. Use a saved-data interface that identifies individual entries if available. Manually clearing the entire authentication folder removes cached data for every server stored there.
Does clearing SVN credentials change my repository password?
No. It only removes locally saved authentication data. To change your account password, use the password-change process provided by your SVN server administrator or organization.
Conclusion
To clear SVN credentials in Windows, start with TortoiseSVN Settings > Saved Data > Authentication data if you use TortoiseSVN. For command-line Subversion, check the standard %APPDATA%\Subversion\auth folder and remove or rename the cache after closing SVN applications. If the old account still appears, check for a custom configuration directory, another SVN client, Windows Credential Manager, or single sign-on. Once the right cache is cleared, reconnect and provide the correct credentials.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.