We are going to upgrade to Vault 5.0.3_18802 soon.
Our existing vault database is very large and we want to delete/purge forever files/labels.
Does anyone know of any Vault API code to purge data?
If so can you share with us?
Thanks
BTD
Code to Purge
Moderator: SourceGear
Re: Code to Purge
We already have that ability built in.
Just as a warning first, that obliterating data makes the repository incompatible with our Export/Import Tool. If you plan on using the Export/Import Tool, then do all exports you think you need before obliterating.
To permanently remove files and their history, first you delete them, then you go to the Vault admin web page, expand the repository on the left that you wish to remove the files from and click the Obliterate link. In there, you can find and select each deleted item to permanently remove.
If you have branches, then before you can obliterate the folder the branches were made from, you have to delete and obliterate each branch.
On deleting labels, in the Vault GUI client, select a path in the tree or just $ and then go to View - Show Labels. Right-click a label and select Delete.
Just as a warning first, that obliterating data makes the repository incompatible with our Export/Import Tool. If you plan on using the Export/Import Tool, then do all exports you think you need before obliterating.
To permanently remove files and their history, first you delete them, then you go to the Vault admin web page, expand the repository on the left that you wish to remove the files from and click the Obliterate link. In there, you can find and select each deleted item to permanently remove.
If you have branches, then before you can obliterate the folder the branches were made from, you have to delete and obliterate each branch.
On deleting labels, in the Vault GUI client, select a path in the tree or just $ and then go to View - Show Labels. Right-click a label and select Delete.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Code to Purge
Sorry, I mis-understood the question. I will move this to our API section.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Code to Purge
In the ClientAPI zip, the VaultClientIntegrationLib has a method called ServerOperations.ProcessCommandDeleteLabel(), which you could use to delete old labels.
Subscribe to the Fortress/Vault blog
Re: Code to Purge
You can also use the GUI client's Show Labels dialog to quickly delete multiple labels.
Subscribe to the Fortress/Vault blog