If Subversion (SVN) keeps asking for your password, shows outdated file status, or seems to be using stale repository information, clearing the relevant cache may help. The important thing is to identify which cache you mean: SVN can store authentication credentials, while clients such as TortoiseSVN may also keep status and log information. A working copy’s .svn directory is different from a cache, and deleting it can damage the working copy.
This guide explains how to clear common SVN caches on Windows, macOS, and Linux, how to refresh a working copy safely, and what to check before removing stored data. Use the section that matches the problem you are trying to solve rather than deleting SVN files at random.
What Does “SVN Cache” Mean?
SVN does not have one universal cache-clearing command because several different types of data can be involved. Subversion clients may save authentication information, and graphical clients can maintain their own caches to make status checks and log browsing faster. SVN also stores essential metadata in each working copy. That metadata is not disposable cache data.
- Authentication cache: Saved passwords, usernames, client certificates, or server trust decisions.
- Client status or log cache: Information a graphical client stores to display file status or repository history more quickly.
-
Working-copy metadata: Files and database information inside the working copy’s
.svndirectory. - Repository or server-side data: Data managed on the SVN server, which is not normally cleared from your computer.
Choose the cache based on the symptom. If SVN is using an old password, clear saved authentication. If TortoiseSVN displays stale status or log information, refresh or clear its client cache. If an update or commit fails because a working copy is locked, run cleanup rather than deleting cache files.
How to Clear the SVN Authentication Cache
Clear authentication data when you have changed your password, need SVN to prompt for different credentials, or want to remove credentials saved on a shared computer. Closing SVN applications first is a good precaution, especially if a client has an active operation.
Clear SVN Credentials on Windows
In TortoiseSVN, open the settings window and go to Saved Data. Find the authentication data section and choose Clear. Depending on the TortoiseSVN version, you may be able to remove all saved authentication data or select specific entries. The next time you access a repository, SVN should ask you to authenticate again.
Other Subversion clients generally use the Subversion configuration directory. On Windows, it is commonly located at:
%APPDATA%\Subversion\auth
To inspect it, enter %APPDATA%\Subversion in File Explorer’s address bar and look for the auth folder. You can remove saved authentication data from that folder, but be aware that doing so may sign you out of multiple repositories. If you only need to reset one account, use the client’s credential-management controls when available instead of removing everything.
Clear SVN Credentials on macOS or Linux
On macOS and many Linux systems, Subversion’s per-user configuration directory is:
~/.subversion
Saved credentials are commonly kept in subdirectories under ~/.subversion/auth. You can inspect that directory in a file manager or from a terminal. For example, to list its contents on macOS or Linux, run:
ls -la ~/.subversion/auth
After closing SVN programs, remove only the saved authentication data you intend to clear. Removing the contents of the authentication cache will make SVN request credentials again for affected repositories. Keep in mind that exact storage behavior can vary by operating system, client, and configuration. Some clients may use an operating-system credential store rather than storing every credential in plain configuration files.
If the credentials remain after you clear the Subversion folder, check the credential manager for your operating system or the settings of the particular SVN client. For example, a graphical client may manage saved credentials separately from the command-line client.
How to Clear the TortoiseSVN Cache
TortoiseSVN has settings for information it stores to improve Windows Explorer integration and repository browsing. If file status appears outdated, first try refreshing the folder view or asking TortoiseSVN to check the folder’s status again. Close and reopen the affected Explorer window as well; Explorer can retain its own displayed view even after SVN has refreshed its information.
To manage TortoiseSVN’s stored data, open TortoiseSVN Settings from the Start menu or from a folder’s context menu. Review the sections related to status caching, log caching, and saved data. The available controls vary by version. Where a clear or remove option is provided, use it for the cache that matches the issue rather than resetting every setting.
Clearing a log cache can make the next history view slower because TortoiseSVN may need to retrieve log information from the server again. Clearing saved authentication data can also trigger a new login prompt. These are expected results, not signs that the working copy has been deleted or damaged.
If you are unsure whether a problem is caused by a cache, compare the result with another SVN client or check the same repository from another working copy. If only one computer has the issue, a local client cache is more likely. If multiple users see the same stale or missing information, the cause may be repository permissions, server configuration, or an uncommitted change rather than a local cache.
Refresh SVN Status Without Deleting Cache Files
For a simple display issue, refresh first. In TortoiseSVN, use the context-menu command to check the folder’s status, or refresh the Explorer window. In a terminal, run svn status from the working-copy directory. This asks SVN to report the local working-copy status and can help distinguish a display problem from a genuine version-control issue.
To see whether the working copy is out of date with the repository, run svn update. An update contacts the repository and brings the working copy forward, subject to conflicts and the repository’s current state. It does not erase local modifications. Review any changes reported by SVN, and do not overwrite or revert files unless you understand what will be lost.
If you need to check what is stored in a working copy, run svn info to view its repository URL and other details. These commands are safer first steps than removing hidden metadata folders or deleting files you do not recognize.
When to Use SVN Cleanup
Use svn cleanup when an SVN operation was interrupted or a working copy reports that it is locked. A lock in this context is usually an internal working-copy lock, not a lock on a file that prevents teammates from editing it. From the working-copy directory, run:
svn cleanup
Or, in TortoiseSVN, right-click the working-copy folder and choose TortoiseSVN > Clean up. Cleanup asks Subversion to complete housekeeping tasks and release internal working-copy locks. It is not the same as clearing passwords or a TortoiseSVN log cache, so it may not fix stale credentials or an Explorer display issue.
Before running cleanup, close other SVN operations that might still be using the working copy. Avoid selecting additional cleanup options unless you know what they do. Options and labels can differ between TortoiseSVN versions, so read the dialog carefully before proceeding.
Do Not Delete the .svn Folder to Clear a Cache
The .svn directory inside a working copy contains information Subversion needs to manage that copy, including its administrative database and metadata. It is not simply a disposable cache. Deleting it can make the folder stop behaving like an SVN working copy and can make it difficult to commit or update your changes correctly.
If you want a completely fresh working copy, the safer approach is to make sure your local modifications are backed up, then check out a new working copy from the repository. Compare and transfer any local changes carefully. Do not delete the existing folder until you have verified that you no longer need its uncommitted work.
If the working copy is damaged and cleanup does not help, check for a backup or make a copy of the entire folder before trying recovery steps. The correct solution depends on the error message and whether your local edits are committed. A fresh checkout may solve some local metadata problems, but it does not automatically preserve uncommitted changes.
Common SVN Cache Problems and Fixes
- SVN keeps asking for a password: Check whether credentials are being saved, clear the relevant authentication entry, and confirm that the username and repository URL are correct.
- SVN uses an old password: Clear the saved authentication data for the client you are using, then reconnect and enter the updated password.
- TortoiseSVN shows an old file status: Refresh the folder or run a status check. If the problem continues, review TortoiseSVN’s status cache settings.
- Repository history looks incomplete or stale: Refresh the log view or clear the client’s log cache if that option is available. The next history request may take longer.
-
The working copy says it is locked: Close other SVN operations and run
svn cleanupin the working-copy directory. - Several users see the same problem: Investigate repository access, server availability, and repository settings before clearing local caches.
Frequently Asked Questions
Will clearing the SVN cache delete my files? Clearing saved credentials or a client’s log cache should not delete working files. However, removing or changing working-copy metadata can cause serious problems. Do not delete the .svn directory as a cache-clearing shortcut.
Will I need to enter my password again? If you clear the authentication data used by your SVN client, you will usually be asked to sign in the next time you access a protected repository. You may also need to accept a server certificate prompt again, depending on what you removed and how the client is configured.
Does svn cleanup clear the password cache? No. Cleanup addresses working-copy housekeeping and internal locks. Use the client’s saved-data settings or the Subversion authentication directory to reset stored credentials.
Should I clear the cache regularly? Usually not. SVN caches are intended to improve convenience and performance. Clear one only when troubleshooting a specific problem, resetting credentials, or removing data from a computer you are handing to someone else.
Conclusion
To clear an SVN cache, first identify the data causing the problem. Use TortoiseSVN’s saved-data controls or the Subversion authentication directory to remove stored credentials. Refresh status or log information through the relevant client settings when those views are stale. Use svn cleanup for interrupted operations or working-copy locks—not as a general cache-clearing command.
Most importantly, leave the working copy’s .svn directory intact. When you target the correct cache and keep local changes safe, you can resolve common SVN issues without risking your files or repository work.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.