Mass Delete

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
SteveDrake
Posts: 3
Joined: Thu May 05, 2005 8:08 am

Mass Delete

Post by SteveDrake » Thu May 05, 2005 8:12 am

Due to our project getting very large and taking to long to open, i have removed ALL sourcesafe (vault) bindings, i now need to do a batch delete of the same files in sourcevault, eg delete ALL vspscc files ect.

Can this been done?

I am happy to use SQL to do this, if this is the only option.

Cheers

Steve

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Thu May 05, 2005 8:27 am

Unfortunately, there is not a simple way to do this. Two possibilities are:

1. Find all the files of that type in the Search pane, and then delete them one by one (the Search pane does not yet support applying a command to all selected files).

2. Write a script using the command line client to delete the files you want. This is probably a lot more work than simply manually deleted files, depending on whether it is a few dozen files, or hundreds of files.

SteveDrake
Posts: 3
Joined: Thu May 05, 2005 8:08 am

Post by SteveDrake » Thu May 05, 2005 8:34 am

We have 147, I can copy and past the results into EXCEL, so if the script to delete is easy, i can use EXCEL to genarate the delete command.

What would the script be to delete ONE file from vault?

Cheers

Steve

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Thu May 05, 2005 8:41 am

It would be something like:

vault delete -host xx -user xx -password xx -repository xx -commit $/repository/path/file.txt

SteveDrake
Posts: 3
Joined: Thu May 05, 2005 8:08 am

Post by SteveDrake » Fri May 06, 2005 2:08 am

Thats done the tick, its very slow tho, time to go make a cup of tea then :)

This would be a nice feature, eg allow commands from the search results, any commands not just delete.

Cheers

Steve

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Fri May 06, 2005 7:10 am

Yes, lots of people have requested that feature - I'll add your vote as well, and hopefully we can get it into the next major release.

Locked