Hi,
I'd like to be able to automate the deletion of files from vault that have been removed from my working folder (directly on the file system, rather than via vault). Is there any simple way of doing this using the vault command line?
Ideally it would be something that could identify all the files in a specific repository path that have a missing status, and selectively deleting these.
Any help would be much appreciated.
Best regards,
David Atkinson
Red Gate Software
Removing missing files from vault using command line
Moderator: SourceGear
There's no specific command to do this with the CLC, but you could incorporate a couple commands into a script.
First, run Listfolder to determine the status of files in the working folder. Then parse out the files names of all the files where status="Missing."
Next run the CLC Delete command on those files.
First, run Listfolder to determine the status of files in the working folder. Then parse out the files names of all the files where status="Missing."
Next run the CLC Delete command on those files.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager