Subversion: Remove a Project

There is no straightforward way to remove all the information of a project from the SVN repository and retrieve that diskspace. The only way to achieve this:

  1. Dump the repository to a dumpfile.
    $ svnadmin dump C:\Foo_Rep > C:\foo_rep_dump
  2. Filter out the project you want to remove from the dumpfile.
    $ svndumpfilter exclude Project_to_del < C:\foo_rep_dump > C:\foo_rep_dump_updated

    If you have many projects that you want to remove, repeat this step for each of them.

  3. Create a new repository.
    $ svnadmin create C:\Foo_rep_new
  4. Load the updated dumpfile to new repository.
    $ svnadmin load C:\Foo_rep_new < C:\foo_rep_dump_updated

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.