Removing missing files from vault using command line

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
dvdtknsn
Posts: 7
Joined: Mon Jan 08, 2007 6:44 am

Removing missing files from vault using command line

Post by dvdtknsn » Mon Jan 08, 2007 6:48 am

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

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Jan 08, 2007 8:58 am

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.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply