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.
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.
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).
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.
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.