3.1.5.5 proc_DeleteAllDocumentVersions

The proc_DeleteAllDocumentVersions stored procedure is called to delete the older (major) versions of a document. proc_DeleteAllDocumentVersions is defined using T-SQL syntax, as follows.

 PROCEDURE proc_DeleteAllDocumentVersions (
 @DocSiteId     uniqueidentifier
 ,@DocDirName   nvarchar(256)
 ,@DocLeafName  nvarchar(128)
 );

@DocSiteId: The Site Collection Identifier (section 2.2.1.17) of the site collection containing the document whose specified versions are being deleted.

@DocDirName: The directory name of the document for which to delete the specified version. If there is no slash in the directory name, the value MUST be an empty string.

@DocLeafName: The leaf name of the document.

Return Values: The proc_DeleteAllDocumentVersions stored procedure MUST return an integer return code of 0.

Result Sets: The proc_DeleteAllDocumentVersions stored procedure MUST NOT return any result set.