This is a recursive obliterate tool, using a modified version of the Vault command line, and a python script. Attached are the changed source files, plus VaultImage.exe and VaultObliterate.py. Dump these last two in the Vault Client directory.
Install python from www.python.org. Edit the script, preferably using IDLE (right-click, select Edit with IDLE) to preserve the indentation, and change the username, password, repository name and server name to suit.
Run the script from the command prompt. Usage:
Code: Select all
VaultObliterate.py [-d] [-nosleep] -getlist $/Path/To/Folder
-d is used to delete duplicate files with the same name (the Vault command line tool would not allow this)
-nosleep removes a 1.5 second pause following the obliteration. This pause is merely a hack so you can safely cancel the script between the "Done!" output and the display of the transaction time. If you're running it unattended, you don't need this pause.
Have fun
Regards,
--
Marcus
Caveats:
1) It works for us with Vault 3.5.1 and Windows XP. Don't try it with any other version. No warranty, no support etc.
2) Don't cancel the script in the middle of an obliterate; it may break your database.
3) The script generates a list of duplicate files at the start; this list is not refreshed until the script is run again.
4) We assume that we can safely delete duplicate-name files, since we know the FileID and DeleteID. This VaultImage.exe does not check for duplicate files, so do not use it without the python script.
5) Files generally take 12-15 seconds to obliterate. Some may take longer.
6) If you try to obliterate too many files, you may experience timeouts resulting in a deadlock error.