DeleteDocumentVersion API

Permanently deletes a specific version of a document. The deletion is irreversible — the version's file content and metadata are removed from the warehouse.

Endpoint

/srv.asmx/DeleteDocumentVersion

Methods

Parameters

Parameter Type Required Description
authenticationTicket string Yes Authentication ticket obtained from AuthenticateUser.
DocumentPath string Yes Full infoRouter path of the document (e.g. /MyLibrary/Reports/Report.pdf).
VersionNumber int Yes Version number to delete. Must be ≥ 1,000,000 (modernized version number format). Use GetDocumentVersions to retrieve valid version numbers for a document.

Response

Success Response

<root success="true" />

Error Response

<root success="false" error="Error message" />

Required Permissions

The authenticated user must have VersionDelete permission on the document.

Additionally:


Example

GET Request

GET /srv.asmx/DeleteDocumentVersion
  ?authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
  &DocumentPath=/MyLibrary/Reports/Report.pdf
  &VersionNumber=3000000
HTTP/1.1

POST Request

POST /srv.asmx/DeleteDocumentVersion HTTP/1.1
Content-Type: application/x-www-form-urlencoded

authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
&DocumentPath=/MyLibrary/Reports/Report.pdf
&VersionNumber=3000000

SOAP Request

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:tns="http://tempuri.org/">
  <soap:Body>
    <tns:DeleteDocumentVersion>
      <tns:authenticationTicket>3f2504e0-4f89-11d3-9a0c-0305e82c3301</tns:authenticationTicket>
      <tns:DocumentPath>/MyLibrary/Reports/Report.pdf</tns:DocumentPath>
      <tns:VersionNumber>3000000</tns:VersionNumber>
    </tns:DeleteDocumentVersion>
  </soap:Body>
</soap:Envelope>

Notes



Error Codes

Error Description
[900] Authentication failed Invalid or missing authentication ticket.
[901] Session expired or Invalid ticket The ticket has expired or does not exist.
Document not found The DocumentPath does not refer to an existing document.
Invalid version number VersionNumber is below 1,000,000 (not in the modernized format).
Version not found The specified version does not exist or has already been deleted.
Access denied The caller does not have VersionDelete permission on the document.
Checked out by another user The document is currently checked out by a different user.

For detailed documentation visit: https://support.inforouter.com/api-docs/DeleteDocumentVersion