VersionDelete Method

Description

Deletes a version in Microsoft Office Project Server 2003. The PDS ensures that the specified version is valid and, if so, deletes the version ID, version name, and version description from the versions value list.

Syntax

<Request>
   <VersionDelete>
      <Version></Version>
      <VersionID></VersionID>
   </VersionDelete>
</Request>

Parameters

Version* or *VersionID

Required. Either the version name or ID is required. If VersionID is specified, Version is ignored, even if given.

Return Value

If the delete is successful, the PDS returns a successful HRESULT and STATUS.

<Reply>
   <HRESULT></HRESULT>
   <STATUS></STATUS>
   <UserName></UserName>
</Reply>

Remarks

The PDS checks Project Server security for the currently logged-on user, determines whether that user is a valid Project Server user, and checks whether that user has sufficient permissions (administration permissions) to delete an existing version in the valid version value lists.

The PDS does not allow the default version to be deleted. The PDS ensures that every project that has a copy of the requested version has been deleted.