Deletes the given version of the document in the specified path.

Syntax

Visual Basic (declaration)
Public Function DeleteDocumentVersion( _ 
ByVal AuthenticationTicket as String, _ ByVal DocumentPath as String, _ ByVal VersionNumber as Integer) as XmlNode

C# (declaration)
public XmlNode DeleteDocumentVersion( 
string AuthenticationTicket, string DocumentPath, Integer VersionNumber)

Parameters

AuthenticationTicket
    string infoRouter ticket
DocumentPath
    string an infoRouter document path that the version to be deleted
VersionNumber
    Integer Version Number to be deleted

Return Value

<response success="true" error="">
if success attribute is "true", the document version has been deleted successfully.
if success attribute is "false", the error attribute indicates the encountered error.

Remarks

The caller must have at least "Change" right on the document.
This method does NOT recycle the version. The deleted version cannot be restored from recyclebin.
Deleting last version means rollbacking to previous version.