Re: Deletion of Branches(Folder and Files) from SVN server

Andreas Stieger <[email protected]> Tue, 9 Jul 2024 11:12:53 +0200
Newsgroups gmane.comp.version-control.subversion.user
Message-ID <[email protected]>
Hello,

On 2024-07-02 17:09, Roshan Pardeshi wrote:
> We require to delete the branches(folder and files) from SVN server to
> release some space from disk as we are facing space crunch on disk in
> SVN server.
>
> Please help on this as what command we should use to delete the
> branches(folder and files). We have used below command but its not working
>
> 1. svn delete branch name
> 2. svnadmin delete branch name
> 3. svn rm branch name
> 4. svnadmin rm branch name
> 5. del branch name


In addition to the guidance given about the svn repository being
immutable, and towards possible filtering, let me share the following:

Check for old, uncommitted transactions taking up disk space. If they
are old you can remove them as they are unlikely to ever become a
revision. On disk this is db/transactions which you can check for space.
To operated on them I recommend you use "svnadmin lstxns" / "svnadmin
rmtxns".

$ svnadmin help lstxns
lstxns: usage: svnadmin lstxns REPOS_PATH

Print the names of uncommitted transactions. With -rN skip the output
of those that have a base revision more recent than rN. Transactions
with base revisions much older than HEAD are likely to have been
abandoned and are candidates to be removed.

Valid options:
   -r [--revision] ARG      : transaction base revision ARG

$ svnadmin help rmtxns
rmtxns: usage: svnadmin rmtxns REPOS_PATH TXN_NAME...

Delete the named transaction(s).


Andreas