Is it possible to remove a file, with all version history, from SVN? For instance if you add a file with confidential financial information simply to have it backed up, and then realise it’s in a SVN sub-directory all your developers can see…
Share
Yes, but it’s not easy. You must be an administrator on the server where the Subversion server is running. Then use
svnadmin dumpto dump the repository, andsvndumpfilterto exclude the appropriate file, and then reconstitute the repository. This is a costly and expensive operation which will take a long time for large repositories.See the Subversion FAQ for more details. A detailed example of how to do this is also given in the Subversion book.