Client API question

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

Moderator: SourceGear

Post Reply
ISBEPGR

Client API question

Post by ISBEPGR » Fri Sep 02, 2005 9:36 am

I have a custom application that moves the contents selected folders to a "retired code" repository and then deletes the selected folders from the original repository.

I have several questions.

Can I delete the topmost folder directly or do I have to delete files and sub-folders first.

How do I get the ObjectID of the file or folder to be deleted. For example

DelVaultFile = New VaultClientOperationsLib.ChangeSetItem_DeleteFile _
(DateTime.Now, String.Empty, String.Empty, OBJECTID, FullPath)

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

Post by dan » Fri Sep 02, 2005 11:01 am

I would suggest looking at the Vault Command line client code, which does support deleting a folder. You can download it from the Client API installer at http://www.sourcegear.com/vault/downloads.html

Post Reply