Reputation: 23998
Is there a way to completely erase a Subversion repository so that users can't access to old revisions?
PS: I have root access on the repositories machine.
Upvotes: 4
Views: 844
Reputation: 18488
Just remove the root folder of the repository, but saving the conf/
folder it has inside. Then, create a new repository with svnadmin create
, and overwrite the old configuration folder on it.
EDIT (for completeness): as Tunnuz and Jim T have pointed out, you may want to save also the contents of the hooks/
folder if it contains custom scripts.
Upvotes: 4
Reputation: 12416
Not really, if you want to keep the configuration, MOVE all the contents of the repository directory to a safe place, then use svnadmin to create a new blank repository, then copy your conf and hook directories back in so that the users and automation scripts are replaced.
Your repository will then be blank, starting again from revision 1.
Upvotes: 2
Reputation: 43552
1.) Delete folder manually (each repository has it own folder)
2.) or use svnadmin command (svnadmin dump).
Upvotes: 0
Reputation: 10100
Delete the folder on the HDD? Subversion repositories are stored in folders... Alternatively you can change the configuration to deny all access to everyone (the method will vary depending on how the authorization is configured).
Upvotes: 1