3

Ok so I just did something boneheaded.

I'm setting up a subversion server for the first time ever that will be used by contractors. I did the 1 click setup, created my project and did my first check in of our application thinking that I'll go through later and remove the password information in the connection string in the configuration file.

Duh...

So now I need to delete that project within the repository and create it again so I can do the checkin this time without the password. Looking through the options for svnadmin help I don't see any options for deleting a repository.

How do I do this? Easy points here!

Rob Prouse
  • 22,161
  • 4
  • 69
  • 89
George Mauer
  • 117,483
  • 131
  • 382
  • 612
  • The title asks how to recreate a repository, but you actually want to purge a file from an existing repository. Consider changing the title, or splitting it out into a separate question. – Roger Lipscombe Dec 05 '08 at 16:36
  • Well, no I imagine I will never want to purge a file from the repository after this one time since whats the point then. I'd rather have this more important information. – George Mauer Dec 05 '08 at 16:44

3 Answers3

6

You can remove the file and purge all its history, and then re-import it clean.

Check this from the SVN FAQ:

How do I completely remove a file from the repository's history?

Christian C. Salvadó
  • 807,428
  • 183
  • 922
  • 838
4

To delete the project repository, just delete the folder from the server, then do svnadmin create again.

Will is right, I didn't read the password sentence correctly. Checking out and deleting won't help with the security concerns. When in doubt, follow the book or check CMS's link.

Fernando Briano
  • 7,699
  • 13
  • 58
  • 75
-1

Just deleting the files from the current revision and doing a commit won't help with security concerns. The password will still exist in an old revision of the repository for the now-deleted file. CMS's FAQ link should help as well.

Will Bickford
  • 5,381
  • 2
  • 30
  • 45