POST: api/{VaultName}/delete/computetree Delete compute tree
Deletes the specified items in the specified vault.
Sample Data
{
"FolderIDs": [
1,
2
],
"FileIDs": [
1,
2
],
"Destroy": true
}
Sample Data
<DeleteComputeTree xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SWPDM.Models">
<Destroy>true</Destroy>
<FileIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</FileIDs>
<FolderIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</FolderIDs>
</DeleteComputeTree>
Sample Data
{
"FileCount": 1,
"FolderCount": 2,
"XRefWarnings": [
{
"ParentProjectID": 1,
"ObjectType": 0,
"ChildObjectType": 0,
"DocumentID": 2,
"Version": 3,
"ChildDocumentID": 4,
"ChildProjectID": 5,
"ChildVersion": 6
},
{
"ParentProjectID": 1,
"ObjectType": 0,
"ChildObjectType": 0,
"DocumentID": 2,
"Version": 3,
"ChildDocumentID": 4,
"ChildProjectID": 5,
"ChildVersion": 6
}
],
"BranchRefWarnings": [
{
"DocumentID": 1,
"ProjectID": 2,
"ObjectType": 0,
"BranchName": "sample string 3",
"BranchDeleted": 4
},
{
"DocumentID": 1,
"ProjectID": 2,
"ObjectType": 0,
"BranchName": "sample string 3",
"BranchDeleted": 4
}
],
"LockedFiles": [
{
"DocumentID": 1,
"ProjectID": 2,
"ObjectType": 3,
"UserID": 4,
"InUserState": true
},
{
"DocumentID": 1,
"ProjectID": 2,
"ObjectType": 3,
"UserID": 4,
"InUserState": true
}
],
"FileNames": {
"1": "sample string 2",
"3": "sample string 4"
},
"UserNameMap": {
"1": "sample string 2",
"3": "sample string 4"
},
"FolderPaths": {
"1": "sample string 2",
"3": "sample string 4"
},
"LocalFiles": [
"sample string 1",
"sample string 2"
],
"LocalFolders": [
"sample string 1",
"sample string 2"
],
"VaultItems": [
{
"ProjectID": 1,
"DocumentID": 2,
"ObjectType": 3,
"Flags": 4
},
{
"ProjectID": 1,
"DocumentID": 2,
"ObjectType": 3,
"Flags": 4
}
]
}
Sample Data
<DelResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SWPDM.Repositories.DTO">
<BranchRefWarnings>
<BranchRefWarning>
<BranchDeleted>4</BranchDeleted>
<BranchName>sample string 3</BranchName>
<DocumentID>1</DocumentID>
<ObjectType>ObjType_NoObject</ObjectType>
<ProjectID>2</ProjectID>
</BranchRefWarning>
<BranchRefWarning>
<BranchDeleted>4</BranchDeleted>
<BranchName>sample string 3</BranchName>
<DocumentID>1</DocumentID>
<ObjectType>ObjType_NoObject</ObjectType>
<ProjectID>2</ProjectID>
</BranchRefWarning>
</BranchRefWarnings>
<FileCount>1</FileCount>
<FileNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOflongstring>
<d2p1:Key>1</d2p1:Key>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:KeyValueOflongstring>
<d2p1:KeyValueOflongstring>
<d2p1:Key>3</d2p1:Key>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:KeyValueOflongstring>
</FileNames>
<FolderCount>2</FolderCount>
<FolderPaths xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOflongstring>
<d2p1:Key>1</d2p1:Key>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:KeyValueOflongstring>
<d2p1:KeyValueOflongstring>
<d2p1:Key>3</d2p1:Key>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:KeyValueOflongstring>
</FolderPaths>
<LocalFiles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</LocalFiles>
<LocalFolders xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</LocalFolders>
<LockedFiles>
<LockInfo2>
<DocumentID>1</DocumentID>
<InUserState>true</InUserState>
<ObjectType>3</ObjectType>
<ProjectID>2</ProjectID>
<UserID>4</UserID>
</LockInfo2>
<LockInfo2>
<DocumentID>1</DocumentID>
<InUserState>true</InUserState>
<ObjectType>3</ObjectType>
<ProjectID>2</ProjectID>
<UserID>4</UserID>
</LockInfo2>
</LockedFiles>
<UserNameMap xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOflongstring>
<d2p1:Key>1</d2p1:Key>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:KeyValueOflongstring>
<d2p1:KeyValueOflongstring>
<d2p1:Key>3</d2p1:Key>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:KeyValueOflongstring>
</UserNameMap>
<VaultItems>
<DeleteItem>
<DocumentID>2</DocumentID>
<Flags>4</Flags>
<ObjectType>3</ObjectType>
<ProjectID>1</ProjectID>
</DeleteItem>
<DeleteItem>
<DocumentID>2</DocumentID>
<Flags>4</Flags>
<ObjectType>3</ObjectType>
<ProjectID>1</ProjectID>
</DeleteItem>
</VaultItems>
<XRefWarnings>
<XRefWarning>
<ChildDocumentID>4</ChildDocumentID>
<ChildProjectID>5</ChildProjectID>
<ChildVersion>6</ChildVersion>
<DocumentID>2</DocumentID>
<Version>3</Version>
<ChildObjectType>ObjType_NoObject</ChildObjectType>
<ObjectType>ObjType_NoObject</ObjectType>
<ParentProjectID>1</ParentProjectID>
</XRefWarning>
<XRefWarning>
<ChildDocumentID>4</ChildDocumentID>
<ChildProjectID>5</ChildProjectID>
<ChildVersion>6</ChildVersion>
<DocumentID>2</DocumentID>
<Version>3</Version>
<ChildObjectType>ObjType_NoObject</ChildObjectType>
<ObjectType>ObjType_NoObject</ObjectType>
<ParentProjectID>1</ParentProjectID>
</XRefWarning>
</XRefWarnings>
</DelResult>