I am trying to write code in C# using vault client libraries to delete and share file.
Following code snippet is for deleting a file. I don't know why after successful execution of code, still the file is not getting deleted. I also tried with file's ID instead of ObjVerID.
Code: Select all
VaultClientFile currentFile = (VaultClientFile)fileArray[index];
ChangeSetItem_DeleteFile deleteFile = new ChangeSetItem_DeleteFile(VaultDateTime.Now, "Deleting it as this is not shared", string.Empty, currentFile.ObjVerID, currentFile.FullPath);
ChangeSetItemColl changeSetColl = new ChangeSetItemColl();
changeSetColl.Add(deleteFile);
vaultClient.Commit(changeSetColl);// vaultClient is object of VaultClientOperationsLib.ClientInstance
Any pointer will of help.
Thanks in advance.
Rajeev