pp108 : DeleteDocument

DeleteDocument

 


The DeleteDocument Web service operation is used for deleting a document. This Web service operation is part of the Document Store Web service interface in the Repository service group.

SOAP Request

<ns:DeleteDocument>
   <!-- Complete path to the document from document root seperated by / -->
   <ns:DocumentURL>/documentroot/folder/test.pdf</ns:DocumentURL>
   <ns:Version> <!-- This is optional and required when deleting a specific version-->
	  <!--type: integer -->
     <ns:MajorVersion>1</ns:MajorVersion>
	  <!--type: integer -->
     <ns:MinorVersion>2</ns:MinorVersion>
    </ns:Version>
</ns:DeleteDocument>
Request Parameters

Parameter

Description

DocumentURL

The path of the document within the repository from the document root. The path must begin from the document root folder provided in the document store configuration and separated by a forward slash (/).

Version

This is optional and is applicable when document store is configured with Content Server. Provide the version details if a specific version of the document must be deleted. If version details are not provided, the document is deleted with all its version history. This is the default behavior.

If advanced version mechanism is followed in Content Server, provide the required major and minor versions of the document. If linear version mechanism is followed, retain the major version as 0 and provide the version number as the minor version.

SOAP Response

This operation returns an empty response.

<ns:DeleteDocumentResponse/>

Related reference

CreateDocument
GetDocument
GetDocumentsInfo
UpdateDocument

Related information

Document Store